I received a suggestion tonight from a user of XAML Power Toys to enhance the Group Into feature. His scenario (like many of ours) is that he is trying to select 100+ lines of XAML code and then use the Group Into command. He explained that selecting a lot of XAML was difficult and potentially error prone.
So I started thinking how I could program this very good suggestion. I ran the request through my K.I.S.S. filter to come up with a solution. K.I.S.S. = Keep It Super Simple.
Group Into With Ease
Below is an image of some XAML. Granted this is not 100+ lines, but will serve our purpose.
The task is to group the DataGrid into a Border.
We can use the collapse feature of the XAML editor to collapse the XAML tree that we want to Group Into a Border. By clicking on the above contract icon, we get our 100+ lines of XAML contracted to a single line of XAML.
Now, just select the single line, fire up the XAML Power Toys, Group Into feature. Presto, clean, fast and error free.
Keep the suggestions and feedback coming. I have received 6 suggestions and a correction. I have already implemented every suggestion. Every user of XAML Power Toys thanks those who submitted feature requests and suggestions!
The next version of XAML Power Toys will be released when Silverlight 2 RTM is released. Keep an eye on Scott Guithrie’s blog for the release announcement.
If you are not using XAML Power Toys yet, get it here.
Have a great day!
Just a grain of sand on the worlds beaches.




October 10, 2008 at 8:51 am |
[...] Cool Usage Tip For XAML Power Toys [...]
October 16, 2008 at 5:26 pm |
[...] Corey Schuman posted about an Update for his Video Slider Karl Shifflett has a Cool Usage Tip For XAML Power Toys Adam Kinney has a blog post and set of demo videos on the WPF Effects and Transitions Library [...]
October 19, 2008 at 7:31 pm |
[...] is a great tip for XAML Power Toys users. In the past I had suggested collapsing a control and children by using the (+) (-) [...]
October 27, 2008 at 6:54 pm |
Does the XAML have to be selected to get the Power Toy feature to work? If not, could the element header be selected through a right-click to apply the powertoy to that element and all elements contained within?
October 27, 2008 at 7:39 pm |
Rich,
The XAML has to be selected.
You can use the technique described here or from this other post: http://karlshifflett.wordpress.com/2008/10/19/super-tip-for-xaml-power-toys/
Have a great day,
Karl