禁用文本框的copy,paste,cut 菜单,以及对应的快捷键
一个简单的例子
Xaml
<TextBox Height="23" HorizontalAlignment="Left" Name="textBox1" VerticalAlignment="Top" Width="120" BorderBrush="#FF444444" Foreground="#FF3C4661" FontSize="13"
InputMethod.IsInputMethodEnabled="False"
Text="Hello"
ContextMenu="{x:Null}">
<TextBox.CommandBindings>
<CommandBinding Command="ApplicationCommands.Paste" CanExecute="CommandBinding_CanExecute"></CommandBinding>
<CommandBinding Command="ApplicationCommands.Cut" CanExecute="CommandBinding_CanExecute"></CommandBinding>
<CommandBinding Command="Appli