ContentControl becomes slow after showing a ComboBox drop down
WPF applications can be resized very quickly until a CombBox drop down is shown. This is most apparent when the application uses many ContentControl instances. This is best demonstrated with a sample...
View ArticleC# - Create a wpf design by a picture
Hi. I have found a picture of a wpf window in one of msdn tutorial and Im trying to copy the design for my progect (School progect). The picture I found is: (found here) The picture of what I have made...
View ArticleWPF Auto complete text box. Please Help!
Hi There, i am trying to create an auto complete textbox from a list of string. i dont want the auto correction to be a list, i just want it to auto suggest the rest of the word in the actual...
View ArticleVscroll in tabcontrol
hi all I have tabpage I want add vertical scroll in it but I my code didn't successful tabpage.VerticalScroll.Visible = True tabpage.VerticalScroll.Enabled = True tabpage.AutoScroll = True•is there...
View ArticleUpdate Combobox ItemsSource
I have two combo boxes: cboContinents and cboCountries.In cboContinents_ValueChanged event, I have: selectedContinent = cboContinents.Text.ToString(); List<string>lstCountries =...
View ArticleDisplaying search results having strings and URLs in WPF application
I am building a WPF application to search items. In the hundreds of search results, every result is of 2 or 3 elements which would be string and URL for that item. I have displayed the results obtained...
View ArticleMemory consumption of WPF application in TaskManager
Hi there, I am doing a WPF application. When I am running the application and check for the Memory consumption in TaskManager, it is getting gradual increase when we do some operations. I am messed up...
View ArticleHow to interop WPF PrintDialog and the MFC print dialog
We have a MFC application. And we added an WPF assembly to be hosted in this application. The MFC application already implemented printing using MFC printing dialog. Now, we want to use the same MFC...
View ArticleValidationEngine for attaching Validation Binding for entire WPF Application
Hi,I want to create a ValidationEngine which would bear following responsibility;1. Bind Validation Rule to entire Control in a WPF Application 2. Explicit calling for any Validation.3. Provide a...
View ArticleHow to make a HwndSource transparent with Child window style
Hi,I want to show some WPF controls above a Win32 window, so I use HwndSource to host the WPF control, and show it as a Child window of the Win32 window. Now I want to make the WPF control transparent,...
View ArticleHow do we make read only all controls in a tab control?
We're working with VS 2012, .NET 4.5. There will be times when we've got to prevent the user from adding or editing data on the user controls that we're writing. Our user controls will all have one...
View ArticleHow to use Windows Forms FontDialog in WPF?
I'm trying it with windowsFormsHost but it wont let me because it's not a control.Is it possible?
View Article"Untoggle" a CustomControl's ToggleButton when some event is raised
We're building this MediaPlayerControl:It has no logic. We will use this control in some parts of application. We defined Commands for it and bound them to the buttons of the control:public static...
View Articlewpf: problem with scrollbar style
Hi guys, i really hope you can help me with the small problem. I managed to style the vertical scrollbar but i cannot manage to style horizontal scrolbar. i dont understand why? can you please review...
View ArticleItemContainerGenerator GenerateNext and Recycling
Hi,I am writing my custom virtualizing panel and I stumbled upon Generator. I realized however wishes to create such a virtualizing panel, they will need the Generator and its GenerateNext method for...
View ArticleHwndHost ZIndex
We had to create a Behavior to place a HwnHost inside a border. This is required to use a library that works only in WinForms controls, so by adding HwnHost we could cheat the library.However, I need...
View ArticleWPF MVVM: how to detect when CheckBox column of DataGrid is checked/unchecked
I have a View with a Datagrid bound to an ObservableCollection in a ViewModel. One of the Datagrid columns is a DataGridCheckBoxColumn (BTW: as recommended by several posts, I also tried using a...
View ArticleExample to populate Combo box
Can someone point me to an example?I have WPF MVVM program.on the main screen I have 3 text boxes a combo box and button. When user clicks on the button a popup screen shows up and displays a data...
View ArticleWPF Copy Paste command Issue
HI,I have copy paste button like this. Whenever I select some text, this copy button is becoming active. Which is correct behavior.<Button Name="CopyButton" Grid.Row="0" Grid.Column="1"...
View ArticleAdvice on drawing images and checking for intersection?
HelloI need some advice on how to do something in WPFI have 2 points (a set of X and Y values) that are changing several times a second. I need to draw an image on those points. I also need to check...
View Article