2
In the textbox you can’t paste at all, the following code works right:
private void Textbox_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
{
if (e.Command == ApplicationCommands.Paste)
{
e.Handled = true;
}
}
The problem is showing in the context menu by clicking the right mouse:
How to disable Ctrl+V ?
see if it helps: https://stackoverflow.com/q/9632/4713574
– Rovann Linhalis
@Rovannlinhalis see my answer !
– Matheus Miranda