Skip to content

Commit 7f72464

Browse files
committed
Tool styling for PopupBox
1 parent de943df commit 7f72464

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,16 @@
127127
</Setter.Value>
128128
</Setter>
129129
</Style>
130-
130+
131+
<Style x:Key="MaterialDesignToolPopupBox" BasedOn="{StaticResource MaterialDesignPopupBox}" TargetType="wpf:PopupBox">
132+
<Setter Property="Foreground" Value="#616161" />
133+
<Setter Property="Padding" Value="4"/>
134+
</Style>
135+
136+
<Style x:Key="MaterialDesignToolForegroundPopupBox" BasedOn="{StaticResource MaterialDesignToolPopupBox}" TargetType="wpf:PopupBox">
137+
<Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>
138+
</Style>
139+
131140
<wpf:PackIcon x:Shared="False" x:Key="MaterialDesignMultiFloatingActionPopupBoxIcon"
132141
Kind="Plus" Width="24" Height="24" Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpf:PopupBox}, Path=Foreground}" />
133142

0 commit comments

Comments
 (0)