Skip to content

Commit 14f60a4

Browse files
committed
diabled button state for default PopupBox button style
1 parent e3d9da4 commit 14f60a4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

MainDemo.Wpf/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
195195
<materialDesign:PopupBox DockPanel.Dock="Right" PlacementMode="BottomAndAlignRightEdges" StaysOpen="False">
196196
<StackPanel>
197197
<Button Content="Hello World" Click="MenuPopupButton_OnClick"/>
198-
<Separator/>
199198
<Button Content="Nice Popup" Click="MenuPopupButton_OnClick"/>
199+
<Button Content="Can't Touch This" IsEnabled="False" />
200200
<Separator/>
201201
<Button Content="Goodbye" Click="MenuPopupButton_OnClick"/>
202202
</StackPanel>

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@
9393
To="0.1" Duration="0"/>
9494
</Storyboard>
9595
</VisualState>
96-
<VisualState Name="Disabled"/>
96+
<VisualState Name="Disabled">
97+
<Storyboard>
98+
<DoubleAnimation Storyboard.TargetProperty="Opacity"
99+
To="0.48" Duration="0"/>
100+
</Storyboard>
101+
</VisualState>
97102
</VisualStateGroup>
98103
</VisualStateManager.VisualStateGroups>
99104
<Border x:Name="MouseOverBorder"

0 commit comments

Comments
 (0)