Disable copy and paste in TextBox in wp8

I am developing a Windows Phone 8 application using C # and I am trying to disable copy and paste in a TextBox. anyone can help.

I tried:

private void digitBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == (Key.Ctrl | Key.V) ) { e.Handled = true; digitBox.SelectionLength = 0; } } 

thanx

+4
source share
1 answer
 private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.Modifiers == Keys.Control) { e.Handled = true; textBox1.SelectionLength = 0; } } 
+2
source

Source: https://habr.com/ru/post/1492873/


All Articles