Skip to content

Commit 98e1f95

Browse files
committed
fix popup content button fore
1 parent 876c63c commit 98e1f95

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,26 @@
5353
VerticalAlignment="Center"
5454
/>
5555
<controlzEx:PopupEx x:Name="PART_Popup" IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=TwoWay}"
56-
CustomPopupPlacementCallback="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupPlacementMethod}"
57-
HorizontalOffset="5"
58-
VerticalOffset="5"
59-
PlacementTarget="{Binding ElementName=PART_Toggle}"
60-
Placement="Custom"
61-
PopupAnimation="Fade"
62-
AllowsTransparency="True">
56+
CustomPopupPlacementCallback="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=PopupPlacementMethod}"
57+
HorizontalOffset="5"
58+
VerticalOffset="5"
59+
PlacementTarget="{Binding ElementName=PART_Toggle}"
60+
Placement="Custom"
61+
PopupAnimation="Fade"
62+
AllowsTransparency="True">
6363
<wpf:Card Content="{TemplateBinding PopupContent}" ContentTemplate="{TemplateBinding PopupContentTemplate}"
64+
Foreground="{DynamicResource MaterialDesignBody}"
6465
FontSize="15"
6566
FontWeight="Regular"
6667
Padding="0 8 0 8"
67-
RenderOptions.ClearTypeHint="Enabled"
68+
RenderOptions.ClearTypeHint="Enabled"
6869
Margin="5">
6970
<wpf:Card.Resources>
7071
<Style TargetType="{x:Type Button}">
7172
<Setter Property="VerticalContentAlignment" Value="Bottom" />
7273
<Setter Property="HorizontalContentAlignment" Value="Left" />
7374
<Setter Property="Padding" Value="16 0 16 16" />
75+
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" />
7476
<Setter Property="Template">
7577
<Setter.Value>
7678
<ControlTemplate TargetType="{x:Type Button}">

0 commit comments

Comments
 (0)