Skip to content

Align closing chevron with associated tag #546

@OldStarchy

Description

@OldStarchy

Is your feature request related to a problem? Please describe.

<RadioButton
    Grid.Row="1"
    Grid.Column="1"
    GroupName="MyOptions"
    IsChecked="{Binding Foo}"
    >
    My label
</RadioButton>

<SomeOtherExample
    attribute="value"
    />

The alignment of > and "My label" is confusing. The text is nested within the element, it should be visually distinct with indentation.

Describe the solution you'd like

> and /> should be aligned with the < when they are on separate lines. > is more closely related to the < as a markup for the element, than it is to the attributes.

<RadioButton
    Grid.Row="1"
    Grid.Column="1"
    GroupName="MyOptions"
    IsChecked="{Binding Foo}"
>
    My label
</RadioButton>

<SomeOtherExample
    attribute="value"
/>

This visually separates the attributes with the content.

Describe alternatives you've considered

Forcing prettier to format xaml by telling it its HTML, but I don't trust that this won't break some xaml-isms that don't quite match HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions