MVVM Patter and databinding [modified]
-
I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM
-
I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM
-
I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM
I use a combination of PresentationTraceSources and Snoop to view the bindings. With Snoop you can quickly find out if the DataContext has been set, and you can also use it to view the bindings themselves (along with so many other useful features).
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads
-
I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM
Probably this can help WPF Inspector No experience with the product, but it's better than nothing! :-D