Xavalon / XamlStyler

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

Add MAUI attribute ordering rule groups #489

Open CodingOctocat opened 3 months ago

CodingOctocat commented 3 months ago

Some of MAUI's attribute names differ from WPF, such as WidthRequest, HeightRequest, MaximumWidthRequest, MaximumHeightRequest, HorizontalOptions, VerticalOptions. VerticalOptions`. Consider adding to the default configuration.

x:Class
xmlns, xmlns:x
xmlns:*
x:Key, Key, x:Name, Name, x:Uid, Uid, Title
Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan, Canvas.Left, Canvas.Top, Canvas.Right, Canvas.Bottom
Width, Height, WidthRequest, HeightRequest, MinWidth, MinHeight, MaxWidth, MaxHeight, MaximumWidthRequest, MaximumHeightRequest
Margin, Padding, HorizontalAlignment, VerticalAlignment, HorizontalOptions, VerticalOptions, HorizontalContentAlignment, VerticalContentAlignment, HorizontalTextAlignment, VerticalTextAlignment, Panel.ZIndex
*:*, *
PageSource, PageIndex, Offset, Color, TargetName, Property, Value, StartPoint, EndPoint
mc:Ignorable, d:IsDataSource, d:LayoutOverrides, d:IsStaticText
Storyboard.*, From, To, Duration

https://github.com/Xavalon/XamlStyler/blob/14dc6e1f6878ac9a20f0be056214534cd4c962b7/src/XamlStyler/Options/DefaultSettings.json#L12-L24