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
MVVM
BackgroundDownloader in MVVM
So I’ve been working on a new view in the Blob Storage Explorer app for Windows 10 today. The transfers view. I have a navigation item for it but right now the screen doesn’t do anything. The user story for this is: As a user, I want to be able to see the progress of … Continue reading BackgroundDownloader in MVVM
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