aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/Control.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-05 10:34:09 -0400
committerMichael <[email protected]>2017-07-05 10:34:09 -0400
commit181f94e70106dce186623d0d35d2646f2cc9dab3 (patch)
tree201ccaf816c791e99c8f9bd5a1d8644cb02e93a8 /ShiftOS.Frontend/GUI/Control.cs
parent4f41f51267e04d752d3d438f70f06a7a37975f5d (diff)
downloadshiftos_thereturn-181f94e70106dce186623d0d35d2646f2cc9dab3.tar.gz
shiftos_thereturn-181f94e70106dce186623d0d35d2646f2cc9dab3.tar.bz2
shiftos_thereturn-181f94e70106dce186623d0d35d2646f2cc9dab3.zip
HEAPS of desktop stuff
Diffstat (limited to 'ShiftOS.Frontend/GUI/Control.cs')
-rw-r--r--ShiftOS.Frontend/GUI/Control.cs13
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;