How to sort keys in ResourceDictionary in xaml in wpf?
Hi EveryOne, I need to sort the keys in ResourceDictionary in xaml. I tried with sorting using SortedList and stored using XamlWriter.Save. but it storing in Unsorted Order in xaml. Can...
View ArticleChaining (Dependency) Properties to nested control's ViewModel
Hi, I have a ListBox with a GroupStyle that contains another ListBox. Now I want to filter the Items of this nested ListBox depending on the group name of the parent ListBox. In the code below I tried...
View ArticleWPF - Speeding up RTF Loading Code
Hello all,I'm working on an update for one of my programs, and the Load function that loads the user's information is lagging for maybe 1 or two seconds. In my application, the user can click buttons...
View ArticleSort a WPF ListBox By Search String
Good day,I would like to sort items in a list box by a search string.Matched result comes first then sort by alphabetical order.e.g. My Listdog, cat, bull, door, table, bird, orangeand my keyword is...
View ArticleHow to insert a image on cursor in wpf?
Hi, I'm with problems... I dont know how to insert a on cursor.I have images of type png and i would like put on cursor... Does anybody know how to make it?
View Article{DependencyProperty.UnsetValue}' is not a valid value for the...
I have created a ComboBoxStyle. => When I apply this to the combo boxes and UI becomes unstable with the below error.<Setter Property="Foreground" Value="{StaticResource OutsideFontBrush}"/>I...
View ArticleWPF listbox image binding
Good morning,I already implemented a application that loads images from a directory to a listbox. All ok but the loading takes about 5 seconds to display around 20-30 images. Is there a way to decrease...
View ArticleWPF DatagridTextColumn not changing immediately when a...
HiI have 2 Tables in a typical Master-Detail relationship :1) AcctGrps is the Master table. It has 2 columns : AcctGrpCd and AcctGrpName, with AcctGrpCd being the PK.2) Accts is the Detail table. It...
View ArticleCannot acces Property settings from a common project
Hello All,I have a project called Common, and it contains classes and code that is used by three other projects. I have a Settings.setting file, and would like to share that along the three projects...
View ArticleListCollectionView CancelEdit throws exception
I have a page. It has a ListCollectionView property. The property is initialized in the ctor via input args before the call to InitializeComponent(). I want to edit the current item. I call...
View ArticleHow to make the camera view and skeleton tracking overlay each other
I have one canvas which contains the Skelton and one image which contains the camera view . However I can't merge them together . As in I need the skeleton to be able to show overlay of the camera view...
View ArticleCustom cursor from VisualBrush?
Hi,Is it possible to create a custom cursor from a VisualBrush in any way?
View ArticleRemove ListCollectionView items does not update UI
Hello guys, I have a Datagrid.ItemsSource binded with a ListCollectionView obtained from an objectquery from EF. It work's fine, but, when i Add a new items and "undo" (before save) the items...
View ArticleDragDrop Adorner Template disappears between windows
Hi,I'm having an issue where my drag drop adorner template is disappearing when dragging from one window to another. The drop performs perfectly correctly but the adorner template is only visable in...
View ArticleRelayCommand in WorkspaceViewModel
Hi,I am going through the Josh Smith's article "WPF Apps with the Model-View-ViewModel Design Pattern" and it's example solution. I am creating classes and view one-by-one in my new test...
View ArticleCan't get a ListBox to work on a splash screen?...
Hi,I download this project Prism Splash Screen Module from CodePlex and I have it working for myMEF application, but I found that only the TextBlock control works. I can't get aListView, TextBox,...
View ArticleScroll Nested Datagrid inside RowDetailsTemplate
I have the following xaml and c#.I use DataGrid and RowDetailsTemplate with another DataGrid.The parent grid with Person information, the child grid has cars owned by the person.I got some of this code...
View Articlehow to convert UI element into Drawing Brush
Hi all,how can i convert UI element into Drawing Brush,for eg : in Expression Blend<Canvas><Button Content="Sample Button"></Button></Canvas>in Expression Blend i can directly...
View ArticleDynamicaly change binding based on language
HelloI have TextBox. I have one class object.Public Class MyClass{ public string engData{get; set;} public string japData{get; set;}}Now I want to change binding of text ptoperty to the columns...
View Article