Don't Move or I Will Shoot Your Bindings
WPF bindings and MVVM are nice when they work, but can become a royal pain when they don’t. This is especially annoying when you create bindings in code, because then […]
WPF bindings and MVVM are nice when they work, but can become a royal pain when they don’t. This is especially annoying when you create bindings in code, because then […]
Since context menu is not part of visual tree, you cannot use things like ElementName in its bindings. However, a context menu, that context menu will inherit DataContext of its […]
You can define a tooltip on a grid (or border), but it will show up only when the mouse hovers over space “occupied” by a grid item. Empty space will […]
Custom panels must call Measure() on their children, even if they ignore the result. Calling just Arrange() causes weird behavior: wrap panels don’t wrap, controls get out of bounds, etc. […]
Story in a nutshell – my custom control was not visible. Reason: we defined default style for the control in our own resource dictionary, which was merged into application resources. […]
Imagine I have a main view that contains a number to sub-views. To be concrete, let’s assume that the sub-view is a user control of type PersonView that displays person’s […]
Let’s say I have a view that must open another window on command. Where would this code sit? The model? Don’t be ridiculous. The view model? Yes, it’s where the […]
1. The view model shall never directly manipulate the controls.. 2. The view shall never manipulate the model.. These are two negatives, because they govern the separation of concerns. Most […]
http://www.ikriv.com/demo/mvvm/ Now includes answers to questions asked during the presentation
I remember reading on Microsoft web site that although WPF and Silverlight are different technologies, their libraries will eventually converge. While this might be a declared goal, it by no […]