Blend tends to create its XAML in very long lines.
Is there a way to reformat it so that the properties of each element are lined up vertically under each other?
Blend tends to create its XAML in very long lines.
Is there a way to reformat it so that the properties of each element are lined up vertically under each other?
You can do it by using Visual Studio:
Change the default settings for XAML documents, and then use CTRL+E,D (Edit | Advanced | Format Document) or CTRL+E,F (Edit | Advanced | Format Selection).
http://weblogs.asp.net/fmarguerie/archive/2008/06/07/xaml-markup-formatting-in-visual-studio.aspx
There isn't a feature in Blend that will autoformat XAML. I usually do xaml formatting with Visual Studio.
Another option is to paste your XAML into Kaxaml and use its excellent XAML scrubber, then paste the result back into Blend. You can see a demo on Channel9: http://channel9.msdn.com/shows/Continuum/Kaxaml/
Or try xaml styler hosted at http://xamlstyler.codeplex.com/ for visual studio 2010. If you ever used Kaxaml's Xaml Scrubber and you like it, then you could think of this extension is the "Xaml Scrubber" for Visual Studio.
Check http://xamlstyler.codeplex.com/ for feature highlights.