mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-05 00:19:27 +03:00
SetVisibleContent now properly hides/shows content.
This commit is contained in:
parent
b297bdd31c
commit
fd54b0245e
@ -337,6 +337,14 @@ namespace DarkUI.Docking
|
|||||||
if (VisibleContent != content)
|
if (VisibleContent != content)
|
||||||
{
|
{
|
||||||
VisibleContent = content;
|
VisibleContent = content;
|
||||||
|
content.Visible = true;
|
||||||
|
|
||||||
|
foreach (var otherContent in _contents)
|
||||||
|
{
|
||||||
|
if (otherContent != content)
|
||||||
|
otherContent.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user