Skip to content

Commit 976eb1d

Browse files
authored
Remove Header from default context menu in TextBox
If the Header property is set on a MenuItem it has a constant value. By not setting it the (localized) name of the command is used instead.
1 parent 019c5d6 commit 976eb1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.TextBox.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
<Setter Property="ContextMenu">
3030
<Setter.Value>
3131
<ContextMenu>
32-
<MenuItem Header="_Cut" Command="Cut">
32+
<MenuItem Command="Cut">
3333
<MenuItem.Icon>
3434
<wpf:PackIcon Kind="ContentCut"/>
3535
</MenuItem.Icon>
3636
</MenuItem>
37-
<MenuItem Header="_Copy" Command="Copy">
37+
<MenuItem Command="Copy">
3838
<MenuItem.Icon>
3939
<wpf:PackIcon Kind="ContentCopy" />
4040
</MenuItem.Icon>
4141
</MenuItem>
42-
<MenuItem Header="_Paste" Command="Paste">
42+
<MenuItem Command="Paste">
4343
<MenuItem.Icon>
4444
<wpf:PackIcon Kind="ContentPaste"/>
4545
</MenuItem.Icon>
@@ -211,4 +211,4 @@
211211
<Setter Property="wpf:TextFieldAssist.HasTextAreaBox" Value="True" />
212212
</Style>
213213

214-
</ResourceDictionary>
214+
</ResourceDictionary>

0 commit comments

Comments
 (0)