XamlStyler
XamlStyler copied to clipboard
Preserve multi line in attribute values
We have the following valid XAML:
<Border cal:Message.Attach="[Event MouseLeave] = [Action ChangeHighlighting];
[Event PreviewMouseDown] = [Action SelectOrSave];
[Event PreviewKeyDown] = [Action ExecuteOn($pressedKey)];">
...
</Border>
The XAML-Styler always modifies exisiting attribute values to:
<Border cal:Message.Attach="[Event MouseLeave] = [Action ChangeHighlighting]; [Event PreviewMouseDown] = [Action SelectOrSave]; [Event PreviewKeyDown] = [Action ExecuteOn($pressedKey)];">
...
</Border>
I think the behavior comes from the XML-Functions of .NET. Maybe you can provide a configuration flag in XAML-Styler to preserve this behavior. Or maybe this configuration exists and I did not find it.
ran into this issue today and thought it was just me!
I have the same problem with uniting a multiline binding expression into one line. This will prevent me from using this extension until this problem is fixed.