mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-03 07:39:28 +03:00
Additional group content now hidden when added
This commit is contained in:
parent
2aeffecd0a
commit
f068c2f311
@ -72,6 +72,8 @@ namespace DarkUI.Docking
|
|||||||
|
|
||||||
if (VisibleContent == null)
|
if (VisibleContent == null)
|
||||||
VisibleContent = dockContent;
|
VisibleContent = dockContent;
|
||||||
|
else
|
||||||
|
dockContent.Visible = false;
|
||||||
|
|
||||||
var menuItem = new ToolStripMenuItem(dockContent.DockText);
|
var menuItem = new ToolStripMenuItem(dockContent.DockText);
|
||||||
menuItem.Tag = dockContent;
|
menuItem.Tag = dockContent;
|
||||||
|
@ -32,6 +32,7 @@ namespace DarkUI.Docking
|
|||||||
get { return _activeContent; }
|
get { return _activeContent; }
|
||||||
internal set
|
internal set
|
||||||
{
|
{
|
||||||
|
// Don't let content visibility changes re-trigger event
|
||||||
if (_switchingContent)
|
if (_switchingContent)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user