|
20 | 20 |
|
21 | 21 | <SolidColorBrush x:Key="AttentionToActionBrush" Color="{StaticResource MaterialDesignShadow}" Opacity=".23" po:Freeze="True" />
|
22 | 22 |
|
23 |
| - <Style x:Key="MaterialDesignRaisedButton" TargetType="{x:Type Button}"> |
| 23 | + <Style x:Key="MaterialDesignRaisedButton" TargetType="{x:Type ButtonBase}"> |
24 | 24 | <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
25 | 25 | <Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
26 | 26 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
|
37 | 37 | <Setter Property="Height" Value="32" />
|
38 | 38 | <Setter Property="Template">
|
39 | 39 | <Setter.Value>
|
40 |
| - <ControlTemplate TargetType="{x:Type Button}"> |
| 40 | + <ControlTemplate TargetType="{x:Type ButtonBase}"> |
41 | 41 | <Grid>
|
42 | 42 | <AdornerDecorator>
|
43 | 43 | <AdornerDecorator.CacheMode>
|
|
69 | 69 | </Setter>
|
70 | 70 | </Style>
|
71 | 71 |
|
72 |
| - <Style x:Key="MaterialDesignRaisedLightButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
| 72 | + <Style x:Key="MaterialDesignRaisedLightButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
73 | 73 | <Setter Property="Background" Value="{DynamicResource PrimaryHueLightBrush}"/>
|
74 | 74 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueLightBrush}"/>
|
75 | 75 | <Setter Property="Foreground" Value="{DynamicResource PrimaryHueLightForegroundBrush}"/>
|
76 | 76 | </Style>
|
77 | 77 |
|
78 |
| - <Style x:Key="MaterialDesignRaisedDarkButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
| 78 | + <Style x:Key="MaterialDesignRaisedDarkButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
79 | 79 | <Setter Property="Background" Value="{DynamicResource PrimaryHueDarkBrush}"/>
|
80 | 80 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueDarkBrush}"/>
|
81 | 81 | <Setter Property="Foreground" Value="{DynamicResource PrimaryHueDarkForegroundBrush}"/>
|
82 | 82 | </Style>
|
83 | 83 |
|
84 |
| - <Style x:Key="MaterialDesignRaisedAccentButton" TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
| 84 | + <Style x:Key="MaterialDesignRaisedAccentButton" TargetType="{x:Type ButtonBase}" BasedOn="{StaticResource MaterialDesignRaisedButton}"> |
85 | 85 | <Setter Property="Background" Value="{DynamicResource SecondaryAccentBrush}"/>
|
86 | 86 | <Setter Property="BorderBrush" Value="{DynamicResource SecondaryAccentBrush}"/>
|
87 | 87 | <Setter Property="Foreground" Value="{DynamicResource SecondaryAccentForegroundBrush}"/>
|
|
0 commit comments