Hidden XAML Feature: Dependency Properties on Converters

Over the years I’ve written my fair share of BooleanToVisibilityConverter classes. The are so drop dead to implement if you are bootstrapping a small project or proof-of-concept it almost doesn’t make sense to add a nugget package just to bring in a standard BooleanToVisibilityConverter. However, after using the UWP Toolkit’s implementation, I might just change … Continue reading Hidden XAML Feature: Dependency Properties on Converters

Model-View-ViewModel: View Model Composition Approach

ViewModel composition is where you have multiple complex view parts that need to bind to their own ViewModel entity. The approach entails constructing a root ViewModel with properties for each child ViewModel. Then the root View is bound to the root View Model and each View (whether displayed or collapsed) is bound to the corresponding … Continue reading Model-View-ViewModel: View Model Composition Approach

Silverlight Model-View-ViewModel-Presenter

Terms Defined Model: C# Classes that model the business domain View: XAML Markup that contains declarative rendering instructions and mappings to a model. Presenter: C# Classes that contain imperative presentation logic and event targets. View Model: C# classes that model the visual domain M-V-P (em-vee-pee) Strengths: Provides clear separation of presentation logic and event handling … Continue reading Silverlight Model-View-ViewModel-Presenter