MVVM - Creating ViewModel : use XAML Power Toys (solution 2 of n).
2 March 2010Here is the next episode of our serie MVVM - Creating ViewModel. A list of all the article about creating a ViewModel is here..
Today we are going to discover a tool which can help us to create the ViewModel.
XAML Power Toys : add-in for VisualStudio
XAML Power Toys is an extremly useful add-in(build by Karl SHIFFLET) for VisualStudio that you can find at this URL : http://karlshifflett.wordpress.com/xaml-power-toys/. It is also available for Visual Studio 2010 since the 13 February 2010
With this add-in, you just have to make a right-click on you class and configure the viewModel that will be created. Then it copy into the clipboard the code of the corresponding ViewModel.
Quite easy :-).
The only drawbacks is that it can be very long to do this for every object and I didn't find a way to automate the operation for a whole library of BusinessObjects...
RightClick :
Configuration screen :
Do you know any other tool performing the same useful things ?
- By JonathanANTOINE@falsemail.com
- - WPF
- - Tags :
Comments
Thanks for this tip. The XAML power toy looks pretty sweet and eliminates some of the tedious work of wrapping a business object's properties / methods.
I also stumbled on the Mole visualizer while on the site. That's a pretty cool tool too. I really like how it lets you drill into the WPF logical and visual trees.
Thanks!
Thanks for the tip.
I am using MVVM light toolkit from Laurent Bugnion, and it is also very helpfull. Not as automated as the XAML power toys, but it has a nice collection off code snippets that I adapted a little bit to fit to my needs. You have to add one property at the time, but I find it really helpfull.