[Suggestion] Selected Attributes to stay on same line

May 8, 2011 at 6:58 PM

Right now there is a no line break of attributes for select elements.

Another suggestion would be selected attributes to be on the same line.

In the following example,

<ComboBox Grid.Row="0" 
                   Grid.Column="1"
                   Width="100"
                   HorizontalAlignment="Left"
                   IsEditable="True"
</ComboBox>
Say I would like to keep Grid.Row, Grid.Column, Grid.RowSpan, Grid.ColumnSpan on the same line regardless of the attribute tolerance, by keeping a list of attributes that forcibly stay on the same line. 
Therefore the example becomes:
 
<ComboBox Grid.Row="0" Grid.Column="1"
                   Width="100"
                   HorizontalAlignment="Left"
                   IsEditable="True"
</ComboBox>

I think that keeping the number of lines small contributes to XAML readability. Over-lining the XAML code is confusing.
 
Coordinator
Jul 30, 2011 at 6:28 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.