how to set RTF from WinForms to WPF RichTextBox.
how to set RTF from WinForms to WPF RichTextBox. (Not by TextRange.Load()). I have a string variable which has rtf text. I want to set this variable to wpf ritch text box. ...
how to set RTF from WinForms to WPF RichTextBox. (Not by TextRange.Load()). I have a string variable which has rtf text. I want to set this variable to wpf ritch text box. ...
Hi All, I want to create a slider with images like a control in the bottom of the youtube(floating images with left and right navigation button). How i have to start. i am new to wpf. for example: http://blog.wpfwonderland.com/page/4/ Geetha. ...
I'm trying to create a application that will be tabbed where each tab will have a button area and a view area. Now each tab will essentially have the same layout just different things in the layout and I wanted to be able to reuse the same layout so that I won't have to change at many places ( it's just not good programming ). Can I acc...
I have few images in a grid, then when i click a button, a "open file dialog" comes up.(of course, over the images) Microsoft.Win32.OpenFileDialog dlgOpenFiles = new Microsoft.Win32.OpenFileDialog(); dlgOpenFile.DoModal(); The images have a LeftButtonUp event attached. The problem is that if i select a file by double clicking it, the o...
Hello! I recently learned how to rotate a BitmapImage using the 'TransformedBitmap' and 'RotateTransformed' classes. Now I am able to perform clockwise rotations on my images. But how do I FLIP an image? I can't find the class(es) to perform horizontal and vertical flips of a BitmapImage. Please help me figure out how to do it. For inst...
I don't know if this is a general web-services issue or just my specific scenario, which is a WPF application with a DispatcherTimer calling a web-service method. Whenever the timer is called, the mouse cursor automatically changes to an hourglass cursor. The processing of the call is very short and happens every 3 seconds, so the user ...
I am using MVVM. I have a tab control. I will have a collection of items. I want to display each of this item in the collection as a tab item. The view in each tab item is different and may have its own viewmodel. How do I achieve this? E.g. I have 3 items in the collection. The Tab item template contains an ItemControl. I would like to ...
Sorry for weird title, actually i can only explain my question but cannot put in a few words in the title. I am developing WPF Composite application with PRISM approach. I have got a common WPF usercontrol which is gonna be used by all other usercontrol, i.e. usecontrol within a usercontrol. The common usercontrol has got a butto...
Hii Can anyone tell me how can I show percentage on the piechart.... The percentage is seen on mouseover event but I dont know how to show the percentage on the piechart's slices.... ...
I want to add the border off canvas using C# not XAML How can i achieve it? ...
I use x:Name to name an element in XAML because I want to be able to reference it using Storyboard.TargetName but everything that has x:Name set also gets a field generated in the code-behind. Is it possible to target an element with Storyboard.TargetName without getting a field (which FxCop gives a warning about unused private code for)...
Hi All, I'm sure there's an "easy" answer to this, but for the moment it escapes me. In an MVVM application, I have a property that is a ObservableCollection, used for displaying some set of elements on the view. private readonly ObservableCollection<MyType> mMyCollection = new ObservableCollection<MyType>(); public ObservableCol...
I am working on a drag & drop. I need to move a control, that originally in the ItemsControl to a StackPanel. I keep getting "Specified Visual is already a child of another Visual". I've already took the item out of the ItemsSource of the ItemsControl. After control is removed from the ItemsControl, the Parents, or TemplatedParents o...
This is in continuation with my last question posted "Continuous Memory leak while using WpfHWndSource" I have to load an WPF User Control in an MFC Modal Dialog that is being invoked from the ocx control. For this I have created a MFC Regular Dll(Mixed Mode Regular dll with clr option enabled), I have created a modal dialog which will ...
I've got this WPF code which works... Uri iconUri = new Uri("pack://application:,,,/media/images/VS.ico", UriKind.RelativeOrAbsolute); this.Icon = BitmapFrame.Create(iconUri); I'm using a windows forms notifyIcon control in my WPF app, and I now need to assing the Icon to it. How do I get from my WPF icon to a System.Drawing.Icon ? ...
HI all, I'm developing a software to control light show ( through DMX protocol ), i use C# and wpf to develop my main software (.net 4.0) To help people preview their show, i would like to make a live 3D visualizer... First, i thought that i could use wpf 3D to make the visualizer, but i need to work with light .. My main application...
Hi, I have a ObservableCollection bound to a Dockpanel. This collection holds some data, and one of the members is a datetime field. Now, i have created a calendar-control which requires a ObservableCollection of DateTime. Is it possible to get/make an ObservableCollection from the dockpanel? Let me show some xaml to make it a bit mor...
I'm tasked with creating a multi-touch application but I don't have a multitouch screen or device and ours don't arrive for a month (Grr!) Is there some kind of emulation or cheap USB device that we can get that will work with WPF in .NET 4 for the interim? ...
Hi All, I am new in the Wpf world, so I created a couple of views and all of them have at least one ComboBox, as I am using the MvvM pattern, I get my self re-typing all the time the same line of codes to fill the Combo and to get the SelectedItem (creating properties, privates for fill and other to get). Is there some kind of framewor...
Hi there. I'm trying to override the default ListBox colour properties when an item is highlighted. However, this XAML code simply causes the text of the highlighted item to disappear completely (or become transparent). <SolidColorBrush Color="{Binding Path=Foreground, ElementName=UserControl}" x:Key="{x:Static SystemColors.ControlText...