Prevent keyboard shortcuts in TreeView
Hi,I have noticed that when I press the numpad minus (-) the TreeView will collapse the current tree branch. I want to disable this temporarily sometimes as it steals focus from the TreeViewItem that...
View ArticleHow to apply resource dictionary style which is in different assembly
Hi experts,I have Views in 2 different assemblies. so I thought its best to keep the style in a different assembly and reference to that assembly from both View dlls. I added a resource dictionary with...
View Articleusing a resourcedictionary in another resourcedictionary
hello everyoneI am using resource dictionaries and now I need to call a resource in another.to be clear I am making a resource which keeps colors and using another to style a control. in second...
View ArticleThreaStateException stops window thread when changing Visibility to Hidden or...
Halo, I have a wpf window which makes in a background very intensive task ( it uses unmanaged dll by pinvoke).Inthis window I have also DispatcherTimer and a normal thread set as background which...
View ArticleWpf ListBox Hosting Windows Form Contols : Drawing Problem
Hi All,I have a windows form image control(For Demonstration purpose, basically it is a WindowForm UserControl Hosting ActiveX Flash Player Control. ) inside WFP - ListBox,When i am scrolling Down and...
View ArticleMicrosoft.WinFX.targets error after changed image file
Hi everybody,i'm working on Blend building WPF app.After I changed the image's file from <image source="new_name_file.png">I get this error "Microsoft.WinFX.targets" and the description says...
View ArticleDatagrid selectedItem and databinding
I have two datagrid displayed on my UI. When I select a particular row on datagrid 1, I would like to display the details of the datagrid 1 on datagrid 2. I am populating the datagrid data from a...
View Articleitems animation within a itemscontrol
Hello forum,i've got an ItemsControl that uses a WrapPanel for its ItemsControl.ItemsPanel template. At runtime i am adding UserControls to this ItemsControl. Now i want to implement some sorting to...
View ArticleCreating WPF interoperable project with windows form
Hi,There is no functionality of MDI form in WPF.Can i use my wpf forms in windows MDI .Is This a right approach or suggest me a way to create MDI behavior in WPF.SaiVaibhav@Acumen
View Articleaccess Single Element in multiTemplate ComboBox Item
hello alli have project To Formatting RichTextBox Text and have ComboBox that Display colors as [Color it self : Color Name ]:<ComboBox Name="cboColors" Width="80" IsTextSearchEnabled="True"...
View ArticleWPF SelectedItem binding between two datagrids
I am developing a User Interface for a host monitoring application, which is already being monitored on database level. I have displayed 2 datagrids on my UI which will populate on run time.These two...
View ArticleNavigating between WPF windows
Hi Expertswhat is the best approach to navigate between WPF windows ? Normally I have a main window and i have created child pages and user controls and loading them within the main window and its...
View ArticleProblem with minimizing / Maximizing from NotifyIcon
Good afternoon,I am learning WPF and one of my first questions was how do I run an app in the system tray. Multiple posts pointed me to the NotifyIcon class which is working fine.My problem has to do...
View ArticleAdd a UserControl programmatically
Hi, I need help with WPF and this is my scenario. I have a user control form(which code and image can be seen below, this control is initially not shown in the page, and upon processing my...
View ArticleFlash DataGridCell different colours if value increases or decreases??
Hi,I have a DataGrid bound to a list of objects that have a Value property. When the Value property for an object increases I want the bound cell in the grid to flash a predetermined colour and when...
View ArticleHow to wait for the WPF render thread to "catch up"?
In WPF, there is both your UI thread and the "hidden" render thread. As you make changes to your controls in the UI thread, those are not reflected immediately. The render thread has to render those...
View ArticleUsing EF5, how to check if ObservableCollection has changes?
Hi, see code below (Using EF5). When an item is added or removed from the datagrid the CollectionChanged event is fired and can be handled, so an IsDirty flag can be set manually. But when changing an...
View ArticleHow to show a popup when right clicking on listview row
I'm new to WPF and have to make some changes to an existing application. I have a grid in a listview that you can add a note to each row of if required. I've done this and added a notes icon that...
View ArticleWPF Prevent an item being selectect in combobox when hovered
One of our QA noticed this combobox behavior that if they hover on the combobox items, it get selected. What they are expecting is this should not happen and it should only be selected when clicked.To...
View ArticleEmbedded fonts in styles at runtime
This is kind of a re-post, and I apologize for that, but in doing a repro, I realized I hadn't described the problem accurately, and I only got one (well-meant, but irrelevant) response to my original....
View Article