This is a mirror of official site: http://jasper-net.blogspot.com/

[Silverlight] Put on attribute per line in XAML files

| Wednesday, August 17, 2011
xaml_options.jpg

A XAML file can be unreadable when there are a lot of attributes in controls. Lines are often too long to be displayed on screen (horizontal scrollbar is required).

Visual Studio 2010 offers an option allowing us to put one attribute per line automatically to facilitate code reading.
So, when you have written your code, press Ctrl + K + D to format XAML.

To activate this option, go to Tools -> Options, then open Text Editor -> XAML -> Formatting and select Spacing.

Next, check “Position each attribute on a separate line“.

Read more: Aymeric's blog
QR: https://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.aymericlagier.com/en/2011/08/15/silverlight-put-on-attribute-per-line-in-xaml-files/

Posted via email from Jasper-net

0 comments: