这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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