Hi,
Just catch the event where you want to handle it, and mark the event a handled.
For example:
private void StackPanel_PreviewKeyDown(object sender, KeyEventArgs e)
{
MessageBox.Show("StackPanel_PreviewKeyDown");
e.Handled = true;
}
I've found this example at the article:
To bubble or tunnel basic WPF events[
^]
Best Regards,
Shai