|
1 | 1 | <ResourceDictionary |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:sys="clr-namespace:System;assembly=mscorlib" |
4 | 5 | xmlns:ui="http://schemas.modernwpf.com/2019" |
5 | 6 | xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"> |
6 | 7 |
|
| 8 | + <sys:Double x:Key="FlipViewButtonFontSize">8</sys:Double> |
| 9 | + <sys:Double x:Key="FlipViewButtonFontSizePointerOver">9</sys:Double> |
| 10 | + <sys:Double x:Key="FlipViewButtonFontSizePressed">7</sys:Double> |
| 11 | + |
7 | 12 | <Style x:Key="DefaultFlipViewStyle" TargetType="Controls:FlipView"> |
8 | 13 | <Setter Property="Background" Value="{DynamicResource FlipViewBackground}" /> |
9 | 14 | <Setter Property="BorderThickness" Value="0" /> |
|
71 | 76 | <ui:FontIconFallback |
72 | 77 | x:Name="Arrow" |
73 | 78 | FontFamily="{DynamicResource SymbolThemeFontFamily}" |
74 | | - FontSize="12" |
| 79 | + FontSize="{DynamicResource FlipViewButtonFontSize}" |
75 | 80 | Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}" |
76 | 81 | Data="{StaticResource CaretRight}" |
77 | 82 | HorizontalAlignment="Center" |
|
83 | 88 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPointerOver}" /> |
84 | 89 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPointerOver}" /> |
85 | 90 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPointerOver}" /> |
| 91 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePointerOver}" /> |
86 | 92 | </Trigger> |
87 | 93 | <Trigger Property="IsPressed" Value="True"> |
88 | 94 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPressed}" /> |
89 | 95 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPressed}" /> |
90 | 96 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPressed}" /> |
| 97 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePressed}" /> |
91 | 98 | </Trigger> |
92 | 99 | </ControlTemplate.Triggers> |
93 | 100 | </ControlTemplate> |
|
101 | 108 | <ui:FontIconFallback |
102 | 109 | x:Name="Arrow" |
103 | 110 | FontFamily="{DynamicResource SymbolThemeFontFamily}" |
104 | | - FontSize="12" |
| 111 | + FontSize="{DynamicResource FlipViewButtonFontSize}" |
105 | 112 | Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}" |
106 | 113 | Data="{StaticResource CaretLeft}" |
107 | 114 | HorizontalAlignment="Center" |
|
113 | 120 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPointerOver}" /> |
114 | 121 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPointerOver}" /> |
115 | 122 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPointerOver}" /> |
| 123 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePointerOver}" /> |
116 | 124 | </Trigger> |
117 | 125 | <Trigger Property="IsPressed" Value="True"> |
118 | 126 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPressed}" /> |
119 | 127 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPressed}" /> |
120 | 128 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPressed}" /> |
| 129 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePressed}" /> |
121 | 130 | </Trigger> |
122 | 131 | </ControlTemplate.Triggers> |
123 | 132 | </ControlTemplate> |
|
131 | 140 | <ui:FontIconFallback |
132 | 141 | x:Name="Arrow" |
133 | 142 | FontFamily="{DynamicResource SymbolThemeFontFamily}" |
134 | | - FontSize="12" |
| 143 | + FontSize="{DynamicResource FlipViewButtonFontSize}" |
135 | 144 | Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}" |
136 | 145 | Data="{StaticResource CaretDown}" |
137 | 146 | HorizontalAlignment="Center" |
|
143 | 152 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPointerOver}" /> |
144 | 153 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPointerOver}" /> |
145 | 154 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPointerOver}" /> |
| 155 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePointerOver}" /> |
146 | 156 | </Trigger> |
147 | 157 | <Trigger Property="IsPressed" Value="True"> |
148 | 158 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPressed}" /> |
149 | 159 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPressed}" /> |
150 | 160 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPressed}" /> |
| 161 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePressed}" /> |
151 | 162 | </Trigger> |
152 | 163 | </ControlTemplate.Triggers> |
153 | 164 | </ControlTemplate> |
|
161 | 172 | <ui:FontIconFallback |
162 | 173 | x:Name="Arrow" |
163 | 174 | FontFamily="{DynamicResource SymbolThemeFontFamily}" |
164 | | - FontSize="12" |
| 175 | + FontSize="{DynamicResource FlipViewButtonFontSize}" |
165 | 176 | Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}" |
166 | 177 | Data="{StaticResource CaretUp}" |
167 | 178 | HorizontalAlignment="Center" |
|
173 | 184 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPointerOver}" /> |
174 | 185 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPointerOver}" /> |
175 | 186 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPointerOver}" /> |
| 187 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePointerOver}" /> |
176 | 188 | </Trigger> |
177 | 189 | <Trigger Property="IsPressed" Value="True"> |
178 | 190 | <Setter TargetName="Root" Property="Background" Value="{DynamicResource FlipViewNextPreviousButtonBackgroundPressed}" /> |
179 | 191 | <Setter TargetName="Root" Property="BorderBrush" Value="{DynamicResource FlipViewNextPreviousButtonBorderBrushPressed}" /> |
180 | 192 | <Setter TargetName="Arrow" Property="Foreground" Value="{DynamicResource FlipViewNextPreviousArrowForegroundPressed}" /> |
| 193 | + <Setter TargetName="Arrow" Property="FontSize" Value="{StaticResource FlipViewButtonFontSizePressed}" /> |
181 | 194 | </Trigger> |
182 | 195 | </ControlTemplate.Triggers> |
183 | 196 | </ControlTemplate> |
|
193 | 206 | <Button |
194 | 207 | x:Name="PART_BackButton" |
195 | 208 | Template="{StaticResource HorizontalPreviousTemplate}" |
196 | | - Width="20" |
197 | | - Height="36" |
198 | | - ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius, Converter={StaticResource RightCornerRadiusFilterConverter}}" |
| 209 | + Width="16" |
| 210 | + Height="38" |
| 211 | + Margin="1" |
| 212 | + ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius}" |
199 | 213 | IsTabStop="False" |
200 | 214 | FocusVisualStyle="{x:Null}" |
201 | 215 | HorizontalAlignment="Left" |
|
204 | 218 | <Button |
205 | 219 | x:Name="PART_ForwardButton" |
206 | 220 | Template="{StaticResource HorizontalNextTemplate}" |
207 | | - Width="20" |
208 | | - Height="36" |
209 | | - ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius, Converter={StaticResource LeftCornerRadiusFilterConverter}}" |
| 221 | + Width="16" |
| 222 | + Height="38" |
| 223 | + Margin="1" |
| 224 | + ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius}" |
210 | 225 | IsTabStop="False" |
211 | 226 | FocusVisualStyle="{x:Null}" |
212 | 227 | HorizontalAlignment="Right" |
|
215 | 230 | <Button |
216 | 231 | x:Name="PART_UpButton" |
217 | 232 | Template="{StaticResource VerticalPreviousTemplate}" |
218 | | - Width="36" |
219 | | - Height="20" |
220 | | - ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius, Converter={StaticResource BottomCornerRadiusFilterConverter}}" |
| 233 | + Width="38" |
| 234 | + Height="16" |
| 235 | + Margin="1" |
| 236 | + ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius}" |
221 | 237 | IsTabStop="False" |
222 | 238 | FocusVisualStyle="{x:Null}" |
223 | 239 | HorizontalAlignment="Center" |
|
226 | 242 | <Button |
227 | 243 | x:Name="PART_DownButton" |
228 | 244 | Template="{StaticResource VerticalNextTemplate}" |
229 | | - Width="36" |
230 | | - Height="20" |
231 | | - ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius, Converter={StaticResource TopCornerRadiusFilterConverter}}" |
| 245 | + Width="38" |
| 246 | + Height="16" |
| 247 | + Margin="1" |
| 248 | + ui:ControlHelper.CornerRadius="{TemplateBinding ui:ControlHelper.CornerRadius}" |
232 | 249 | IsTabStop="False" |
233 | 250 | FocusVisualStyle="{x:Null}" |
234 | 251 | HorizontalAlignment="Center" |
|
0 commit comments