Skip to content

Commit 22ade03

Browse files
committed
Formatting XAML
1 parent eaef784 commit 22ade03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Fluent.Ribbon/Themes/Controls/FocusStyles.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
<Style x:Key="Fluent.Ribbon.Styles.FocusVisual.Rectangle"
1313
TargetType="{x:Type Rectangle}">
14+
<Setter Property="Margin" Value="-1" />
1415
<Setter Property="SnapsToDevicePixels" Value="True" />
1516
<Setter Property="Stroke" Value="{DynamicResource Fluent.Ribbon.Brushes.Black}" />
1617
<Setter Property="StrokeThickness" Value="2" />
17-
<Setter Property="Margin" Value="-1" />
1818
</Style>
1919

2020
<ControlTemplate x:Key="Fluent.Ribbon.Templates.FocusVisual"

Fluent.Ribbon/Themes/Controls/RibbonTabControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@
8989

9090
<Style x:Key="Fluent.Ribbon.Styles.RibbonTabControl.DisplayOptionsButton"
9191
TargetType="{x:Type Fluent:DropDownButton}">
92+
<Setter Property="AutomationProperties.Name" Value="{Binding Uid, RelativeSource={RelativeSource Self}}" />
9293
<Setter Property="CanAddToQuickAccessToolBar" Value="False" />
9394
<Setter Property="Foreground" Value="{DynamicResource Fluent.Ribbon.Brushes.LabelText}" />
9495
<Setter Property="Height" Value="22" />
9596
<Setter Property="ResizeMode" Value="None" />
9697
<Setter Property="Template" Value="{DynamicResource Fluent.Ribbon.Templates.RibbonTabControl.DisplayOptionsButton}" />
9798
<Setter Property="Uid" Value="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.DisplayOptionsButtonScreenTipTitle, Mode=OneWay}" />
98-
<Setter Property="AutomationProperties.Name" Value="{Binding Uid, RelativeSource={RelativeSource Self}}" />
9999
<Setter Property="Width" Value="22" />
100100
</Style>
101101

Fluent.Ribbon/Themes/Controls/WindowCommands.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
<Button x:Name="PART_Min"
2727
Uid="{Binding Minimize, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
28-
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
2928
Style="{DynamicResource Fluent.Ribbon.Styles.WindowCommands.CaptionButton}"
3029
Padding="0"
3130
controlzex:NonClientControlProperties.ClickStrategy="MouseEvent"
3231
controlzex:NonClientControlProperties.HitTestResult="MINBUTTON"
32+
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
3333
Focusable="False"
3434
SnapsToDevicePixels="True"
3535
ToolTip="{Binding Minimize, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}">
@@ -43,11 +43,11 @@
4343

4444
<Button x:Name="PART_Max"
4545
Uid="{Binding Maximize, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
46-
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
4746
Style="{DynamicResource Fluent.Ribbon.Styles.WindowCommands.CaptionButton}"
4847
Padding="0"
4948
controlzex:NonClientControlProperties.ClickStrategy="MouseEvent"
5049
controlzex:NonClientControlProperties.HitTestResult="MAXBUTTON"
50+
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
5151
Focusable="False"
5252
SnapsToDevicePixels="True"
5353
ToolTip="{Binding Maximize, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
@@ -62,11 +62,11 @@
6262

6363
<Button x:Name="PART_Restore"
6464
Uid="{Binding Restore, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
65-
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
6665
Style="{DynamicResource Fluent.Ribbon.Styles.WindowCommands.CaptionButton}"
6766
Padding="0"
6867
controlzex:NonClientControlProperties.ClickStrategy="MouseEvent"
6968
controlzex:NonClientControlProperties.HitTestResult="MAXBUTTON"
69+
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
7070
Focusable="False"
7171
SnapsToDevicePixels="True"
7272
ToolTip="{Binding Restore, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
@@ -81,11 +81,11 @@
8181

8282
<Button x:Name="PART_Close"
8383
Uid="{Binding Close, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}"
84-
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
8584
Style="{DynamicResource Fluent.Ribbon.Styles.WindowCommands.CaptionButton}"
8685
Padding="0"
8786
controlzex:NonClientControlProperties.ClickStrategy="MouseEvent"
8887
controlzex:NonClientControlProperties.HitTestResult="CLOSE"
88+
AutomationProperties.Name="{Binding Uid, RelativeSource={RelativeSource Self}}"
8989
Focusable="False"
9090
SnapsToDevicePixels="True"
9191
ToolTip="{Binding Close, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:WindowCommands}}}">

0 commit comments

Comments
 (0)