This is something that has bitten me several times, so I thought I’d write it down. Maybe I’ll remember, and maybe I’ll help others when they hit this too. The scenario happens when you want to create a new control that can have a template applied to it. Let’s start...
[Read More]
Binding Converters - VisibilityConverter
One of the reasons why the ViewModel pattern is so powerful in Silverlight and WPF is because Binding Converters can do so much. As we saw in HelloWorld.ViewModel, a ViewModel can expose a boolean property that is consumed as a Visibility value for controls. This requires some glue to convert...
[Read More]
HelloWorld.ViewModel – Code & Running App
I just updated my HelloWorld.ViewModel post from earlier today to include the full source code as well as a running app (and a screen shot).
Running app here. Source code here.
HelloWorld.ViewModel
A few folks asked me to provide a ViewModel sample of some sort. I thought this was a great idea, since I don’t know that I had seen a straight-forward ViewModel sample yet. So here it is: HelloWorld.ViewModel! Click the image to view the Silverlight sample live. Let’s start...
[Read More]
ViewModel Pattern
When I was at BIG, I created what I called the Extended MVP pattern. I built a framework that was used on multiple projects for managing the presentation layer as well as validation. I’m still very happy with what I created, and my teams at BIG are still pleased with...
[Read More]