How to: Change XAML View Settings
You can change the appearance and behavior of the XAML view in the Windows Presentation Foundation (WPF) Designer for Visual Studio.
Changing XAML Syntax Highlighting Colors
You can change the foreground and background colors of elements and attributes displayed in XAML view.
To change XAML syntax highlighting colors
From the Tools menu, select Options.
In the Options dialog box, expand the Environment item.
Select the Fonts and Colors item.
The font and color options appear.
In the Display items list box, find the entries which have the XAML prefix.
Select the XAML language element which you want to change to a different color.
Set the Item foreground and Item background values to the colors you want to display in XAML view. You can also select the Bold check box if you want the XAML language element to appear in bold face.
Note
Changes to font style apply to all of the XAML markup.
Changing XAML Auto-formatting Options
XAML view provides an auto-formatting feature, which enables uniform spacing and line break structure for XAML markup. To auto-format your XAML markup, press CTRL+KD when XAML view is open.
To change XAML auto-formatting options
From the Tools menu, select Options.
In the Options dialog box, expand the Text Editor item.
Expand XAML.
Expand Formatting.
Under Formatting, select General or Spacing.
The formatting options appear.
Set the formatting options according to your preferences. For more information, see Formatting, XAML, Text Editor, Options Dialog Box.