185 reputation
5
bio website blog.codenaked.com
location Gainesville, VA
age 39
visits member for 3 years, 9 months
seen Oct 29 at 14:07

Master of WPF, Silverlight, C#, and .NET. Student of everything else.


Feb
26
awarded  Caucus
May
15
awarded  Critic
Jun
16
awarded  Teacher
Jun
15
comment What are the rules for coupling a ViewModel and a View in the MVVM pattern?
@subt13 - Possibly, but in general the VM shouldn't be adapted to fit the View, it should be the other way around.
Jun
15
comment What are the rules for coupling a ViewModel and a View in the MVVM pattern?
@Alan - Ah, sorry was in WPF land. You're right, I believe I just duplicated that in a shared library since it was used so much.
Jun
15
comment What are the rules for coupling a ViewModel and a View in the MVVM pattern?
@subt13 - I disagree. Having a property that matches type is not the cleanest way. Let's say you have an IsError property and you want to display something in Bold when that is true. Under your model, you'd have to have an ErrorFontWeight property. Whereas the best way to do that would be through a value converter or trigger.
Jun
15
comment What are the rules for coupling a ViewModel and a View in the MVVM pattern?
@subt13 - There is actually a built in converter for just this case (BooleanToVisibilityConverter). It makes the View-Model much clearer, especially if the Hidden state is not valid. By using an Enum, your VM can be invalid.
Jun
15
comment What are the rules for coupling a ViewModel and a View in the MVVM pattern?
Data bound is correct, not data binded ;-)
Jun
15
answered What are the rules for coupling a ViewModel and a View in the MVVM pattern?
Mar
24
comment What is the biggest trouble developers encounter when debugging?
Or, only happens in release mode with no debugger attached :-)
Mar
10
awarded  Supporter
Mar
7
awarded  Autobiographer