Exemple #1
0
        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;
            }
        }
Exemple #2
0
 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);
 }