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.
following are the steps for changing xaml auto-formatting options:
1. goto Tools menu and select Options.
2. Expand the Text Editor item in the Options dialog box.
3. Expand XAML.
4. Expand Formatting.
5. Under Formatting, select General or Spacing, you can see variousformatting options
6. Set the formatting options according to your preferences.