Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you format XAML in Expression Blend?

Does anyone know how to "format xaml" in Expression Blend similar to the option "Format Document" in Visual Studio?

like image 969
mikeymo Avatar asked Sep 11 '09 17:09

mikeymo


People also ask

Does Expression Blend support XAML?

Blend for Visual Studio helps you design XAML-based Windows and Web applications. It provides the same basic XAML design experience as Visual Studio and adds visual designers for advanced tasks such as animations and behaviors.

How do I format a XAML file?

Getting Started: Right-click with any file and select "Format XAML" to format your XAML source code.

How do I view XAML design in Visual Studio?

To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer. to switch which window appears on top: either the artboard or the XAML editor.

What is XAML in C#?

C# interfaces - Blazor, API, UWP, WPF, Office XAML stands for Extensible Application Markup Language. It's a simple and declarative language based on XML. In XAML, it very easy to create, initialize, and set properties of objects with hierarchical relations.


2 Answers

I don't believe there is an autoformat feature in Expression Blend.

You'd have to open it up in Visual Studio and format it there. You can also use a Visual Studio plugin called XAML Scrubber to auto scrub the markup, but then you'd still have to paste it back into Blend.

like image 88
Brandon Avatar answered Sep 30 '22 01:09

Brandon


Even in Blend 4 I couldn't find a way of doing this. You can also download Kaxaml which has an integrated XAML Scrubber.

like image 23
Daniel Avatar answered Sep 30 '22 00:09

Daniel