2
Vote

Binding Expression Wraps to Second Line

description

In Visual Studio 2012 some of my binding expressions are wrapping to two lines. It appears to happen when the binding expression contains multiple property setters (for example: both Path and Mode are set).

I have these options set:
Beautify on saving xaml: False
Position first attribute on same line as start tag: False

Example of output (an image is also attached):
                        <Views:DirectoryBrowser
                            Height="24"
                            Margin="158,0,110,0"
                            DirectoryPath="{Binding Path=SourceRootDirectoryPath,
                                                                        Mode=TwoWay}" />

file attachments

comments

_Kryptos wrote Feb 6, 2014 at 2:14 PM

I think this bug is related to option Position first attribute on same line as start tag.

The correct output should have been :
<Views:DirectoryBrowser
    Height="24"
    Margin="158,0,110,0"
    DirectoryPath="{Binding Path=SourceRootDirectoryPath,
                            Mode=TwoWay}" />
Mode property is position as if the option was still set to true.

I hope it will be fixed soon.