Hello, here is a libary you searching for. I foud this some time ago. With this libary you have full control of the internet explorer here is the link: http://watin.sourceforge.net/[^] i hope this helps you
schiebel t
Posts
-
IE automation -
PropertyChanged NotoficationHello, Currently im hanging on one Problem. I wrote a class inherting from grid. Each grid has the property children. How can i get an notification when a new children added to the grid. I need somethink like a event which occours when the children-cout changed. I hope you understand what i mean. Thanks in advanced
-
PropertyChanged NofificationHello, Currently im hanging on one Problem. I wrote a class inherting from grid. Each grid has the property children. How can i get an notification when a new children added to the grid. I need somethink like a event which occours when the children-cout changed. I hope you understand what i mean. Thanks in advanced
-
How to detect invalid image in a ImageBrushhi, try this:
FileInfo fileInf = new FileInfo(ImagePath); if (fileInf.Exists) { ImageBrush ib = new ImageBrush( new BitmapImage( new Uri(invalidImagePath, UriKind.RelativeOrAbsolute))); DockPanel.Background = ib; } else { MessageBox.Show("Invalid image path!"); }
-
Is there any native WPF Multiselect combobox available ?i dont know, but you can easyly create it by your own. create a usercontrol with a grid. add a textbox, a button and a listbox. listbox height = 0. on button click listbox height = yourvalue. if you want i can wirte it for you. tell me best regards tobias schiebel
-
HypreLink in WPF User control.hi you can try this: make an click event on you textblok. and in you click event call:
System.Diagnostics.Process.Start("http://www.google.de");
-
GridSplitter Cursorhi, try to set the cursor directly to the gridspliter. you can do this in you constructor mygridSpliter.Cursor = Cursors.SizeWE;
-
How to pass parameters to WPF ?Hi, if your squar is any UIElement or a rectangle try this
Rectangle myrect = new Rectangle;
myrect.width = 10;
myrect.height = 10;
myrect.Margin = new Thickness(100,100,0,0); -
How to get the Actual Width of a Grid Column whose width is Auto.Hi, try to add an SizeChanged event to you grid. The SizeChangedEventArgs have a property NewSize. And with this you can easy calculate the grid column width GridColumnWidth = (windowWidth / 100) * GridColumnProcent
public partial class Window1 : Window
{
double windowWidth;public Window1() { InitializeComponent(); this.SizeChanged += new SizeChangedEventHandler(Window1\_SizeChanged); } void Window1\_SizeChanged(object sender, SizeChangedEventArgs e) { windowWidth = e.NewSize.Width; } }
-
DependencyProperty problemHello all, Im working on an ColorPicker user control and have problems registering DependencyPropertys. I try to register a new DependencyProperty in Visual Studio 2008 and all is working fine so far. Now i open Expression blend, add an reference to the ColorPicker.dll, and add a new instance to the window. When i now build the solution i get an exeption: "the property IsCurrentColor has allready been registerd from _ColorPicker" and the usercontrol cant anymore viewed in expression blend. Im a little confused because the application anyway started and all is working. Here is a little code of mine.
public partial class _ColorPicker
{
private readonly DependencyProperty IsCurrentColorProperty;public \_ColorPicker() { this.InitializeComponent(); IsCurrentColorProperty = DependencyProperty.Register( "IsCurrentColor", typeof(Color), typeof(\_ColorPicker), new FrameworkPropertyMetadata(Color.FromRgb(255, 255, 255), new PropertyChangedCallback(OnIsCurrentColorChanged))); } private void OnIsCurrentColorChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { SetColorInfos((Color)e.NewValue); \_currentColor.Background = new SolidColorBrush((Color)e.NewValue); //RaiseEvent(new RoutedEventArgs(this.iCurrentColorChangedEvent, (Color)e.NewValue)); }
}
-
MediaElement Will Not PlayHi, try this
class myclass
{
MediaElement me;public myclass() { MediaElement me = new MediaElement(); LoadedBehavior = MediaState.Manual; me.Source = new Uri(@"Path"); me.Loaded += new RoutedEventHandler(me\_Loaded); } void me\_Loaded(object sender, RoutedEventArgs e) { me.Play(); }
}
-
VisualBrushHello i trying to draw a raster on a rectangle. Im using the VisualBrush as the VisualBrush.Visual um using a TextBox (onely for testing) I setted the TileMode to tile, and the ViewPort. All is working fine. But when i scale the ractangle, the VisualBrush.Visual also gets scaled. How can i fix this? here is my code:
<Rectangle Stroke="#FF000000" Margin="80,136,224,46"> <Rectangle.Fill> <VisualBrush TileMode="FlipX" Viewport="0,0,0.1,0.1" Stretch="Uniform"> <VisualBrush.Visual> <TextBox Text="test"/> </VisualBrush.Visual> </VisualBrush> </Rectangle.Fill> </Rectangle>
sorry for my bad english! i hope you understand my problem
-
How to add text to richtextbox from different thread with wcf?Hello Daniel, Check this out: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx[BackgroundWorker] The BackgroundWorker enables you to stop the current Thread, and report the status. Hope this helps!
-
UserControl problem!Hello, My Problem: I created a usercontrol (slider) with expression blend. I have also an codebehind file written in c# with some events. When i compile the usercontrol to a dll, and reference on an other project to this dll, the events dont work. But Why? But when i create an usercontrol in an executabel project, and create an instance of the usercontrol it works. Thanks for your questions
-
Environment.GetCommandLineArgs(); [modified]hello, my problem: i like to select multible mp3 files in the windows explorer, open and process them with my application. I think it works with the GetCommandLineArgs() Methode (bsp. string[] args = Environment.GetCommandLineArgs()). This Method returns a string array. But when i select more than 1 mp3 file in the windows explorer, and show the Length of the args array, it alwas says 2. Index 0 is always the url of my programm. Index 1 is the url of the first selectet mp3 in the windows explorer, and the rest is emty. But why, i like to get each url of each mp3. I hope you understand me
modified on Wednesday, October 22, 2008 3:08 AM
-
Get FileInfo of an Audio [modified]problem was to search somethink i dont know. now i know that its called id3 tag thank you verry much
-
Get FileInfo of an Audio [modified]Hello, (first im sorry for my english ist verry bad ( :) since 3 days i try to get the FileInfo like Author, Album, Tracknumber, Genre ect. of an audio file, but i faild. i found an article shows exactly what i want but its in c++ http://www.codeproject.com/KB/audio-video/cmp3info.aspx[^] Has anyone an idea how to get this informations? thanks a lot
modified on Tuesday, September 30, 2008 1:30 PM