Hello. Can I somehow disable ListView items navigation through keyboard (arrow keys), and leave navigation with mouse and in code? Im new to WPF, but have some experience with WinForm so any tips?
+1
A:
Register the listView_PreviewKeyDown Event and set
private void listView1_PreviewKeyDown(object sender, KeyEventArgs e)
{
e.Handled = true;
}
For further infos on the pressed key (e.g. to disable only special keys) check the KeyEventArgs e.
Steav
2010-04-16 20:14:13
I see thank you, don't noticed this event, and looking for something like SuppressKeyPress from WinForms :)
Andrew
2010-04-16 20:20:36