Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.21k stars 130 forks source link

Put events together #403

Closed hupo376787 closed 2 years ago

hupo376787 commented 2 years ago

Is your feature request related to a problem? Please describe. Now the events and property are mixed together, so it's hard to find events. image

Describe the solution you'd like Put events together, and move to last. image

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

NicoVermeir commented 2 years ago

Thanks for the idea @hupo376787 The way XAML Styler works is that it looks at XAML like a normal XML file. It has no knowledge of what attribute or property is an event or another type. So in order to make this work we would either need to add a list of all events for every element to figure this stuff out.

What we do have in XAML Styler that might help you is either putting the most common events in an attribute ordering group, or just disable attribute reordering in the settings.

image

@grochocki feel free to chime in here if you have other ideas :)

hupo376787 commented 2 years ago

Thanks for the reply. @NicoVermeir