Skip to content

Commit 979ad06

Browse files
authored
style: add XamlStyler settings (#581)
1 parent cccd79f commit 979ad06

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Settings.XamlStyler

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"AttributesTolerance": 1,
3+
"KeepFirstAttributeOnSameLine": true,
4+
"MaxAttributeCharactersPerLine": 0,
5+
"MaxAttributesPerLine": 1,
6+
"NewlineExemptionElements": "RadialGradientBrush, GradientStop, LinearGradientBrush, ScaleTransform, SkewTransform, RotateTransform, TranslateTransform, Trigger, Condition, Setter, StaticResource",
7+
"SeparateByGroups": false,
8+
"AttributeIndentation": 0,
9+
"AttributeIndentationStyle": 0,
10+
"RemoveDesignTimeReferences": false,
11+
"IgnoreDesignTimeReferencePrefix": false,
12+
"EnableAttributeReordering": false,
13+
"AttributeOrderingRuleGroups": [
14+
"x:Class",
15+
"xmlns, xmlns:x",
16+
"xmlns:*",
17+
"x:Key, Key, x:Name, Name, x:Uid, Uid, Title",
18+
"Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan, Canvas.Left, Canvas.Top, Canvas.Right, Canvas.Bottom",
19+
"Width, Height, MinWidth, MinHeight, MaxWidth, MaxHeight",
20+
"Margin, Padding, HorizontalAlignment, VerticalAlignment, HorizontalContentAlignment, VerticalContentAlignment, Panel.ZIndex",
21+
"*:*, *",
22+
"PageSource, PageIndex, Offset, Color, TargetName, Property, Value, StartPoint, EndPoint",
23+
"mc:Ignorable, d:IsDataSource, d:LayoutOverrides, d:IsStaticText",
24+
"Storyboard.*, From, To, Duration"
25+
],
26+
"FirstLineAttributes": "",
27+
"OrderAttributesByName": false,
28+
"PutEndingBracketOnNewLine": false,
29+
"RemoveEndingTagOfEmptyElement": true,
30+
"SpaceBeforeClosingSlash": true,
31+
"RootElementLineBreakRule": 0,
32+
"ReorderVSM": 0,
33+
"ReorderGridChildren": false,
34+
"ReorderCanvasChildren": false,
35+
"ReorderSetters": 0,
36+
"FormatMarkupExtension": true,
37+
"NoNewLineMarkupExtensions": "x:Bind, Binding",
38+
"ThicknessSeparator": 2,
39+
"ThicknessAttributes": "Margin, Padding, BorderThickness, ThumbnailClipMargin",
40+
"FormatOnSave": false,
41+
"CommentPadding": 1,
42+
}

0 commit comments

Comments
 (0)