When adding new controls to a WPF Window (or other “custom” control), such as a label, the IDE prebuilds such as
<Label Content="Label" Grid.ColumnSpan="2" Grid.Row="6" Grid.RowSpan="2" Height="28" HorizontalAlignment="Left" Margin="54,11,0,0" Name="label1" VerticalAlignment="Top" />
I would like it to change the default order and formatting, such as…
<Label Name="label1"
Content="Label"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Grid.Row="?"
Grid.Column ="?"
Height="28"/>
Especially as a newbie to WPF, I hate how things are just “thrown” together by the IDE. I like to have the name of controls up front, primary alignment issues, then the where and extras regarding the control.
I Don’t know the way of stablish a default order in the properties, but maybe Xaml Markup Styler can be of your interest. It’s a plugin for VS that reformat your XAML (contextual menu) and sort the atributes based on their importance (The importance in the opinion of the plugin developer.
Anyway, I’m using this plugin right now and I recomend it.
http://xamlstyler.codeplex.com/
I know this is not exactly what you want, but maybe It’s a good partial solution.