|
12 | 12 | <Style x:Key="MaterialDesignPopupBoxButton" TargetType="{x:Type Button}"> |
13 | 13 | <Setter Property="Foreground" Value="{DynamicResource MaterialDesign.Brush.Foreground}" /> |
14 | 14 | <Setter Property="HorizontalContentAlignment" Value="Left" /> |
15 | | - <Setter Property="Padding" Value="16,0,16,16" /> |
| 15 | + <Setter Property="Cursor" Value="Hand" /> |
| 16 | + <Setter Property="Padding" Value="16,0,16,0" /> |
16 | 17 | <Setter Property="Template"> |
17 | 18 | <Setter.Value> |
18 | 19 | <ControlTemplate TargetType="{x:Type Button}"> |
|
30 | 31 | <VisualState Name="MouseOver"> |
31 | 32 | <Storyboard> |
32 | 33 | <DoubleAnimation Storyboard.TargetName="MouseOverBorder" |
33 | | - Storyboard.TargetProperty="Opacity" |
34 | | - To="0.1" |
35 | | - Duration="0" /> |
| 34 | + Storyboard.TargetProperty="Opacity" |
| 35 | + To="0.1" |
| 36 | + Duration="0" /> |
36 | 37 | </Storyboard> |
37 | 38 | </VisualState> |
38 | 39 | <VisualState Name="Disabled"> |
39 | 40 | <Storyboard> |
40 | 41 | <DoubleAnimation Storyboard.TargetProperty="Opacity" |
41 | | - To="0.48" |
42 | | - Duration="0" /> |
| 42 | + To="0.48" |
| 43 | + Duration="0" /> |
43 | 44 | </Storyboard> |
44 | 45 | </VisualState> |
45 | 46 | </VisualStateGroup> |
46 | 47 | </VisualStateManager.VisualStateGroups> |
47 | 48 | <Border x:Name="MouseOverBorder" |
48 | | - Background="{TemplateBinding Foreground, Converter={x:Static converters:BrushRoundConverter.Instance}}" |
49 | | - Opacity="0" /> |
| 49 | + Background="{TemplateBinding Foreground, Converter={x:Static converters:BrushRoundConverter.Instance}}" |
| 50 | + Opacity="0" /> |
50 | 51 | <wpf:Ripple MinHeight="48" |
51 | | - Padding="{TemplateBinding Padding}" |
52 | | - HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
53 | | - VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
54 | | - Content="{TemplateBinding Content}" |
55 | | - ContentTemplate="{TemplateBinding ContentTemplate}" |
56 | | - ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" |
57 | | - Feedback="{TemplateBinding Foreground, Converter={x:Static converters:BrushRoundConverter.Instance}}" |
58 | | - Focusable="False" |
59 | | - SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
| 52 | + Padding="{TemplateBinding Padding}" |
| 53 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 54 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
| 55 | + Content="{TemplateBinding Content}" |
| 56 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 57 | + ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" |
| 58 | + Feedback="{TemplateBinding Foreground, Converter={x:Static converters:BrushRoundConverter.Instance}}" |
| 59 | + Focusable="False" |
| 60 | + SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
60 | 61 | </Grid> |
61 | 62 | </ControlTemplate> |
62 | 63 | </Setter.Value> |
63 | 64 | </Setter> |
64 | | - <Setter Property="VerticalContentAlignment" Value="Bottom" /> |
| 65 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
65 | 66 | </Style> |
66 | 67 |
|
67 | 68 | <wpf:PackIcon x:Key="MaterialDesignPopupBoxToggleContent" |
|
0 commit comments