File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
MaterialDesignThemes.Wpf/Themes Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 93
93
<MenuItem Header =" Test 1" />
94
94
<MenuItem Header =" Test 1" />
95
95
</MenuItem >
96
+ <MenuItem Header =" In Color" Background =" {DynamicResource PrimaryHueMidBrush}" Foreground =" {DynamicResource PrimaryHueMidForegroundBrush}" >
97
+ <MenuItem Header =" Test 1" Background =" {DynamicResource SecondaryHueMidBrush}" Foreground =" {DynamicResource SecondaryHueMidForegroundBrush}" />
98
+ <MenuItem Header =" Test 1" Background =" {DynamicResource SecondaryHueMidBrush}" Foreground =" {DynamicResource SecondaryHueMidForegroundBrush}" />
99
+ <MenuItem Header =" Test 1" Background =" {DynamicResource SecondaryHueMidBrush}" Foreground =" {DynamicResource SecondaryHueMidForegroundBrush}" />
100
+ </MenuItem >
96
101
</Menu >
97
102
</materialDesign : Card >
98
103
</smtx : XamlDisplay >
Original file line number Diff line number Diff line change 117
117
x : Name =" templateRoot"
118
118
BorderBrush =" {TemplateBinding BorderBrush}"
119
119
BorderThickness =" {TemplateBinding BorderThickness}"
120
-
120
+ Background = " {TemplateBinding Background} "
121
121
SnapsToDevicePixels =" True" />
122
122
<Border
123
123
x : Name =" BackgroundRoot"
251
251
CacheMode =" {Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}" >
252
252
<Border
253
253
x : Name =" SubMenuBorder"
254
- Background =" {DynamicResource MaterialDesignPaper }"
254
+ Background =" {TemplateBinding Background }"
255
255
Effect =" {DynamicResource MaterialDesignShadowDepth1}"
256
256
CornerRadius =" 2" >
257
257
You can’t perform that action at this time.
0 commit comments