style: Sort tag attributes in xaml
* Put attached props before regular (i.e., not attached) props * Sort alphabetically, with exceptions for props that are logically grouped together. For example Width/MinWidth/MaxWidth may be adjacent, as they are all 'width' props.
This commit is contained in:
1 parent
44a7bc0de9
commit
fea8e184c1
1 file changed
+15
-16
@@ -159,14 +159,13 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
BorderThickness="0"
|
||||
Background="Transparent"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
u:DoubleDisplay.Multiplier="{TemplateBinding Multiplier}"
|
||||
u:DoubleDisplay.Format="{TemplateBinding Format}"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static Decimal, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
/>
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
Foreground="{TemplateBinding Foreground}" />
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
@@ -203,10 +202,10 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static SignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -244,10 +243,10 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static UnsignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -285,10 +284,10 @@
|
||||
>
|
||||
<TextBox
|
||||
x:Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static UnsignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -322,10 +321,10 @@
|
||||
>
|
||||
<TextBox
|
||||
x:Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static UnsignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -397,13 +396,13 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.CommitOnEnter="{TemplateBinding CommitOnEnter}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static Decimal, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
HorizontalContentAlignment="{TemplateBinding TextHorizontalAlignment}"
|
||||
BorderThickness="0"
|
||||
Background="Transparent"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
@@ -438,10 +437,10 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static SignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -475,9 +474,9 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -505,9 +504,9 @@
|
||||
>
|
||||
<TextBox
|
||||
Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
BorderThickness="0">
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}">
|
||||
<TextBox.Style>
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Style.Triggers>
|
||||
@@ -550,10 +549,10 @@
|
||||
>
|
||||
<TextBox
|
||||
x:Name="PART_TextBox"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static UnsignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
</ControlTemplate>
|
||||
@@ -588,8 +587,8 @@
|
||||
<TextBox
|
||||
x:Name="PART_TextBox"
|
||||
u:TextBoxBehavior.EnableArrowKeyTraverse="True"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
BorderThickness="0"
|
||||
CaretBrush ="{TemplateBinding Foreground}"
|
||||
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Converter={StaticResource NullableULongTextConverter}}"
|
||||
/>
|
||||
</c:TickUpDown>
|
||||
|
||||
Reference in new issue
Block a user