public void Undock() { lock (IFace.UpdateMutex) { DockStack ds = Parent as DockStack; ds.Undock(this); IFace.AddWidget(this); this.Left = savedSlot.Left; this.Top = savedSlot.Top; this.Width = savedSlot.Width; this.Height = savedSlot.Height; IsDocked = false; DockingPosition = Alignment.Undefined; Resizable = wasResizable; } }
public virtual void onPop(object sender, EventArgs e) { if (Content != null) { Content.Visible = true; if (Content.Parent == null) { IFace.AddWidget(Content); } if (Content.LogicalParent != this) { Content.LogicalParent = this; } IFace.PutOnTop(Content, true); _content_LayoutChanged(this, new LayoutingEventArgs(LayoutingType.Sizing)); } Popped.Raise(this, e); }