Hi,
I want to override the selection behavior of ListBox Items.
We can traverse through ListBox items using Up and Down arrows but I want to traverse the list using Left and Right arrow keys.
While I am trying to add the key down event for ListBox, It shows almost all key presses except for Arrow Keys, Home, End and similar keys.
I have the following code:
private void listArtist_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
if (e.Key.ToString() == "Enter")
{
// Go to some page
}
else
{
MessageBox.Show(e.Key.ToString());
}
}
I am clueless about this. Please help.
Thanks, Subhen