diff --git a/src/Wpf.Ui/Controls/NavigationView/NavigationViewContentPresenter.cs b/src/Wpf.Ui/Controls/NavigationView/NavigationViewContentPresenter.cs index 66817641e..23595cfaf 100644 --- a/src/Wpf.Ui/Controls/NavigationView/NavigationViewContentPresenter.cs +++ b/src/Wpf.Ui/Controls/NavigationView/NavigationViewContentPresenter.cs @@ -140,11 +140,23 @@ protected override void OnMouseDown(MouseButtonEventArgs e) if (e.ChangedButton is MouseButton.XButton1 or MouseButton.XButton2) { e.Handled = true; + return; } base.OnMouseDown(e); } + protected override void OnPreviewKeyDown(KeyEventArgs e) + { + if (e.Key == Key.F5) + { + e.Handled = true; + return; + } + + base.OnPreviewKeyDown(e); + } + protected virtual void OnNavigating(System.Windows.Navigation.NavigatingCancelEventArgs eventArgs) { NotifyContentAboutNavigatingTo(eventArgs.Content);