diff options
Diffstat (limited to 'ShiftOS.Frontend/GUI')
| -rw-r--r-- | ShiftOS.Frontend/GUI/Control.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/GUI/Control.cs b/ShiftOS.Frontend/GUI/Control.cs index b502a71..012b2ee 100644 --- a/ShiftOS.Frontend/GUI/Control.cs +++ b/ShiftOS.Frontend/GUI/Control.cs @@ -367,6 +367,19 @@ namespace ShiftOS.Frontend.GUI gfx.Clear(Engine.SkinEngine.LoadedSkin.ControlColor.ToMonoColor()); } + public void SendToBack() + { + if(_parent != null) + { + _parent._children.Remove(this); + _parent._children.Insert(0, this); + } + else + { + UIManager.SendToBack(this); + } + } + public void InvalidateTopLevel() { var parent = this; |
