There is an article on MSDN that demonstrates how to enable sorting column for a ListView used with Grid layout. The solution presented there works perfectly, but I do not want to put code behind my windows, because I work with MVVM approach. The solution is wrapping everything in a behavior, so I took the […]

Continue reading about Sorting a WPF ListView in Grid Mode

Yesterday I was presented with an interesting question: How can I design a user control that change appearance when the windows containing it is maximized? Thanks to WPF binding and Triggers the solution is simple, suppose you want to create a border control that change thickness when the windows that contains this User Control is […]

Continue reading about Change appearance of a control if the windows is maximized in WPF

If you have a Multi Monitor setup in Windows and you want to open a WPF window in fullscreen in a specific monitor you have no native option, but it is quite simple to obtain such functionality. First of all you need to reference Winform assembly, because you need winform code to identify information for […]

Continue reading about Open a windows in a specific monitor in full screen mode in a WPF application

Wpf Design Time Data part 3
on November 30th, 2012
On category: WPF

Wpf Design Time Data – An introduction Wpf and Design data, Use a concrete class If you followed the suggestion of my first couple of posts you should have a dedicated Design Time view model for each real View Model in your application so you can effectively use Design Time Data. You should be aware […]

Continue reading about Wpf Design Time Data part 3

Survive binding of DataGrid in WPF
on November 23rd, 2012
On category: WPF

DataGrid is one of the most annoying control in WPF because it sometimes has really different behaviors from other controls. The very first problem is that inside DataGridColumns the DataContext is not what you expect. Suppose you have this simple scenario in MVVM: an ObservableCollection of Objects, each one has IsSelected property and you want […]

Continue reading about Survive binding of DataGrid in WPF