|
37 | 37 | <Setter Property="BorderBrush" Value="{DynamicResource TextControlBorderBrush}" /> |
38 | 38 | <Setter Property="BorderThickness" Value="{DynamicResource NumberBoxSpinButtonBorderThickness}" /> |
39 | 39 | <Setter Property="FontFamily" Value="{DynamicResource SymbolThemeFontFamily}" /> |
40 | | - <Setter Property="ContentTemplate"> |
41 | | - <Setter.Value> |
42 | | - <DataTemplate> |
43 | | - <ui:FontIconFallback Data="{Binding}" /> |
44 | | - </DataTemplate> |
45 | | - </Setter.Value> |
46 | | - </Setter> |
47 | 40 | </Style.Setters> |
48 | 41 | </Style> |
49 | 42 |
|
50 | | - <Style |
51 | | - x:Key="NumberBoxPopupSpinButtonStyle" |
52 | | - BasedOn="{StaticResource NumberBoxSpinButtonStyle}" |
53 | | - TargetType="RepeatButton"> |
| 43 | + <Style x:Key="NumberBoxPopupSpinButtonStyle" |
| 44 | + BasedOn="{StaticResource NumberBoxSpinButtonStyle}" |
| 45 | + TargetType="RepeatButton"> |
54 | 46 | <Style.Setters> |
55 | 47 | <Setter Property="Focusable" Value="False" /> |
56 | 48 | <Setter Property="Width" Value="36" /> |
|
60 | 52 | <Setter Property="FontSize" Value="16" /> |
61 | 53 | <Setter Property="FontFamily" Value="{DynamicResource SymbolThemeFontFamily}" /> |
62 | 54 | <Setter Property="ui:ControlHelper.CornerRadius" Value="{DynamicResource ControlCornerRadius}" /> |
63 | | - <Setter Property="ContentTemplate"> |
64 | | - <Setter.Value> |
65 | | - <DataTemplate> |
66 | | - <ui:FontIconFallback Data="{Binding}" /> |
67 | | - </DataTemplate> |
68 | | - </Setter.Value> |
69 | | - </Setter> |
70 | 55 | </Style.Setters> |
71 | 56 | </Style> |
72 | 57 |
|
|
252 | 237 | </Trigger> |
253 | 238 | <Trigger Property="IsEnabled" Value="false"> |
254 | 239 | <Setter TargetName="HeaderContentPresenter" Property="Foreground" Value="{DynamicResource TextControlHeaderForegroundDisabled}" /> |
255 | | - <Setter Property="Background" Value="{DynamicResource TextControlBackgroundDisabled}" /> |
| 240 | + <Setter TargetName="BorderElement" Property="Background" Value="{DynamicResource TextControlBackgroundDisabled}" /> |
256 | 241 | <Setter TargetName="BorderElement" Property="BorderBrush" Value="{DynamicResource TextControlBorderBrushDisabled}" /> |
257 | | - <Setter Property="Foreground" Value="{DynamicResource TextControlForegroundDisabled}" /> |
| 242 | + <Setter TargetName="PART_ContentHost" Property="Foreground" Value="{DynamicResource TextControlForegroundDisabled}" /> |
258 | 243 | <Setter TargetName="PlaceholderTextContentPresenter" Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundDisabled}" /> |
259 | 244 | </Trigger> |
260 | 245 | <Trigger Property="IsMouseOver" Value="true"> |
261 | 246 | <Setter TargetName="BorderElement" Property="BorderBrush" Value="{DynamicResource TextControlBorderBrushPointerOver}" /> |
262 | | - <Setter Property="Background" Value="{DynamicResource TextControlBackgroundPointerOver}" /> |
| 247 | + <Setter TargetName="BorderElement" Property="Background" Value="{DynamicResource TextControlBackgroundPointerOver}" /> |
263 | 248 | <Setter TargetName="PlaceholderTextContentPresenter" Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundPointerOver}" /> |
264 | | - <Setter Property="Foreground" Value="{DynamicResource TextControlForegroundPointerOver}" /> |
| 249 | + <Setter TargetName="PART_ContentHost" Property="Foreground" Value="{DynamicResource TextControlForegroundPointerOver}" /> |
265 | 250 | </Trigger> |
266 | 251 | <Trigger Property="IsSelectionActive" Value="true"> |
267 | 252 | <Setter TargetName="PlaceholderTextContentPresenter" Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundFocused}" /> |
268 | | - <Setter Property="Background" Value="{DynamicResource TextControlBackgroundFocused}" /> |
| 253 | + <Setter TargetName="BorderElement" Property="Background" Value="{DynamicResource TextControlBackgroundFocused}" /> |
269 | 254 | <Setter TargetName="BorderElement" Property="BorderBrush" Value="{DynamicResource TextControlBorderBrushFocused}" /> |
270 | 255 | <Setter TargetName="BorderElement" Property="BorderThickness" Value="{DynamicResource TextControlBorderThemeThicknessFocused}" /> |
271 | | - <Setter Property="Foreground" Value="{DynamicResource TextControlForegroundFocused}" /> |
| 256 | + <Setter TargetName="PART_ContentHost" Property="Foreground" Value="{DynamicResource TextControlForegroundFocused}" /> |
272 | 257 | </Trigger> |
273 | 258 | <MultiTrigger> |
274 | 259 | <MultiTrigger.Conditions> |
|
303 | 288 | <Setter Property="Template"> |
304 | 289 | <Setter.Value> |
305 | 290 | <ControlTemplate TargetType="local:NumberBox"> |
306 | | - <ControlTemplate.Resources> |
307 | | - <StreamGeometry x:Key="ChevronDown">M 18.935547 4.560547 L 19.814453 5.439453 L 10 15.253906 L 0.185547 5.439453 L 1.064453 4.560547 L 10 13.496094 Z</StreamGeometry> |
308 | | - <StreamGeometry x:Key="ChevronUp">M 19.091797 14.970703 L 10 5.888672 L 0.908203 14.970703 L 0.029297 14.091797 L 10 4.111328 L 19.970703 14.091797 Z</StreamGeometry> |
309 | | - </ControlTemplate.Resources> |
310 | | - |
311 | 291 | <Grid ui:ThemeManager.HasThemeResources="True" Height="{TemplateBinding Height}"> |
312 | 292 | <Grid.Resources> |
313 | 293 | <ui:ResourceDictionaryEx> |
|
410 | 390 |
|
411 | 391 | <RepeatButton |
412 | 392 | x:Name="PopupUpSpinButton" |
413 | | - Content="{StaticResource ChevronUp}" |
| 393 | + Content="" |
414 | 394 | Margin="0,0,0,4" |
415 | 395 | Style="{StaticResource NumberBoxPopupSpinButtonStyle}" /> |
416 | 396 |
|
417 | 397 | <RepeatButton |
418 | 398 | x:Name="PopupDownSpinButton" |
419 | 399 | Grid.Row="1" |
420 | | - Content="{StaticResource ChevronDown}" |
| 400 | + Content="" |
421 | 401 | Style="{StaticResource NumberBoxPopupSpinButtonStyle}" /> |
422 | 402 | </Grid> |
423 | 403 | </Border> |
|
446 | 426 | Grid.Column="1" |
447 | 427 | Margin="4" |
448 | 428 | ui:ControlHelper.CornerRadius="{TemplateBinding CornerRadius}" |
449 | | - Content="{StaticResource ChevronUp}" |
| 429 | + Content="" |
450 | 430 | FontSize="{TemplateBinding FontSize}" |
451 | 431 | Style="{StaticResource NumberBoxSpinButtonStyle}" |
452 | 432 | Visibility="Collapsed" /> |
|
457 | 437 | Grid.Column="2" |
458 | 438 | ui:ControlHelper.CornerRadius="{TemplateBinding CornerRadius}" |
459 | 439 | Margin="0,4,4,4" |
460 | | - Content="{StaticResource ChevronDown}" |
| 440 | + Content="" |
461 | 441 | FontSize="{TemplateBinding FontSize}" |
462 | 442 | Style="{StaticResource NumberBoxSpinButtonStyle}" |
463 | 443 | Visibility="Collapsed" /> |
|
519 | 499 | <Setter TargetName="DownSpinButton" Property="Visibility" Value="Visible" /> |
520 | 500 | <Setter TargetName="UpSpinButton" Property="Visibility" Value="Visible" /> |
521 | 501 | <Setter TargetName="InputEater" Property="Visibility" Value="Visible" /> |
522 | | - <!--<Setter TargetName="InputBox" Property="ui:ControlHelper.CornerRadius" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CornerRadius, Converter={StaticResource LeftCornerRadiusFilterConverter}}" />--> |
523 | 502 | <Setter TargetName="InputBox" Property="MinWidth" Value="{StaticResource NumberBoxMinWidth}" /> |
524 | 503 | </Trigger> |
525 | 504 | <!-- SpinButtonsPopup --> |
|
0 commit comments