public override void KeyDown(KeyEventArgs e) { if (e.Key == Key.F5) { if (e.KeyboardDevice.Modifiers == ModifierKeys.Control || e.KeyboardDevice.Modifiers == ModifierKeys.Shift) { Refresh(); } else if (SelectedList != null) { SelectedList.Refresh(); } else { Refresh(); } } }