private static void FocusElementMouseRightButtonDown(object sender, MouseButtonEventArgs e) { Control control = ControlsHelper.FindParentControl <Control>(e.OriginalSource as DependencyObject); if (control != null) { control.Focus(); e.Handled = true; } }