diff --git a/source/Components/AvalonDock/DockingManager.cs b/source/Components/AvalonDock/DockingManager.cs index a6a396d5..6d2bb7d0 100644 --- a/source/Components/AvalonDock/DockingManager.cs +++ b/source/Components/AvalonDock/DockingManager.cs @@ -1383,6 +1383,22 @@ public bool AutoWindowSizeWhenOpened #endregion AutoWindowSizeWhenOpened + #region ShowNavigator + + /// dependency property. + public static readonly DependencyProperty ShowNavigatorProperty = DependencyProperty.Register(nameof(ShowNavigator), typeof(bool), typeof(DockingManager), + new FrameworkPropertyMetadata(true)); + + /// Gets/sets whether the navigator window should be shown when the user presses Control + Tab. + [Bindable(true), Description("Gets/sets whether floating windows should show the system menu when a custom context menu is not defined."), Category("FloatingWindow")] + public bool ShowNavigator + { + get => (bool)GetValue(ShowNavigatorProperty); + set => SetValue(ShowNavigatorProperty, value); + } + + #endregion ShowNavigator + #endregion Public Properties #region LogicalChildren @@ -1428,7 +1444,7 @@ private void ClearLogicalChildrenList() private bool IsNavigatorWindowActive => _navigatorWindow != null; - private bool CanShowNavigatorWindow => _layoutItems.Any(); + private bool CanShowNavigatorWindow => ShowNavigator && _layoutItems.Any(); #endregion Private Properties