Skip to content

Commit

Permalink
Add DockingManager.ShowNavigator
Browse files Browse the repository at this point in the history
  • Loading branch information
calumr committed Feb 16, 2023
1 parent 58ec136 commit 02fa070
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion source/Components/AvalonDock/DockingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,22 @@ public bool AutoWindowSizeWhenOpened

#endregion AutoWindowSizeWhenOpened

#region ShowNavigator

/// <summary><see cref="ShowNavigator"/> dependency property.</summary>
public static readonly DependencyProperty ShowNavigatorProperty = DependencyProperty.Register(nameof(ShowNavigator), typeof(bool), typeof(DockingManager),
new FrameworkPropertyMetadata(true));

/// <summary>Gets/sets whether the navigator window should be shown when the user presses Control + Tab.</summary>
[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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 02fa070

Please sign in to comment.