Skip to content

Commit

Permalink
Merge pull request #428 from calumr/show-navigator
Browse files Browse the repository at this point in the history
Add DockingManager.ShowNavigator
  • Loading branch information
Dirkster99 authored Mar 24, 2023
2 parents 35ca486 + 02fa070 commit 88db37d
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 88db37d

Please sign in to comment.