Attribute Buddies

Apr 13, 2012 at 10:36 AM

Hello,

I think I may have posted this some time ago.

I am proposing the use of "attribute buddies". That is attributes that cannot be split on a new line. This will help to keep the number of lines small, without sacrificing clarity. We can have many groups of attribute buddies, which override the tolerance and max attributes per line option.

For example, Width and Height are one group.

Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan are another,

HorizontalAlignment, VerticalAlignment are a third,

so

 instead of:

 <Image Grid.Row="0"
        Grid.RowSpan="2"
        Grid.Column="0"
        Width="96"
        Height="96"
        HorizontalAlignment="Left"
        VerticalAlignment="Top"

 you can have a much more concise:

 

                <Image Grid.Row="0" Grid.RowSpan="2" Grid.Column="0"
                       Width="96" Height="96"
                       HorizontalAlignment="Left" VerticalAlignment="Top"


Apr 16, 2012 at 9:39 PM

+1

There was the first thing I tried to do.

 

And now I have another concern with bindings. The binding is splitted and I don't want to. 

IsChecked="{Binding IsActive,
                    Mode=OneWay}"

Aug 18, 2012 at 1:23 PM

i like this suggestion too.. i don't want my binding expressions to split too

Oct 18, 2012 at 10:33 AM

This is exactly what I was going to suggest too. It would be a really great feature :-)