Exemplo n.º 1
0
 protected override void OnLayout(LayoutEventArgs levent)
 {
     VisibleNestedPanes.Refresh();
     RefreshChanges();
     base.Visible = (VisibleNestedPanes.Count > 0);
     SetText();
     base.OnLayout(levent);
 }
Exemplo n.º 2
0
 protected override void OnDeactivate(EventArgs e)
 {
     base.OnDeactivate(e);
     // Propagate the Deactivate event to the visible panes content objects
     foreach (IDockContent content in VisibleNestedPanes.SelectMany(p => p.Contents).ToList())
     {
         content.OnDeactivate(e);
     }
 }
Exemplo n.º 3
0
 protected override void OnActivated(EventArgs e)
 {
     DockPanel.FloatWindows.BringWindowToFront(this);
     base.OnActivated(e);
     // Propagate the Activated event to the visible panes content objects
     foreach (IDockContent content in VisibleNestedPanes.SelectMany(p => p.Contents).ToList())
     {
         content.OnActivated(e);
     }
 }
Exemplo n.º 4
0
 protected override void OnLayout(LayoutEventArgs levent)
 {
     VisibleNestedPanes.Refresh();
     if (VisibleNestedPanes.Count == 0)
     {
         if (Visible)
         {
             Visible = false;
         }
     }
     else if (!Visible)
     {
         Visible = true;
         VisibleNestedPanes.Refresh();
     }
     base.OnLayout(levent);
 }
Exemplo n.º 5
0
        protected override void OnLayout(LayoutEventArgs levent)
        {
            if (IsDisposed)
            {
                return;
            }

            VisibleNestedPanes.Refresh();
            RefreshChanges();

            if (IsDisposed)
            {
                return;
            }

            Visible = (VisibleNestedPanes.Count > 0);
            SetText();

            base.OnLayout(levent);
        }
Exemplo n.º 6
0
        protected override void OnLayout(LayoutEventArgs levent)
        {
            VisibleNestedPanes.Refresh();
            if (VisibleNestedPanes.Count == 0)
            {
                if (Visible)
                {
                    Visible = false;
                }
            }
            else if (!Visible)
            {
                Visible = true;
                VisibleNestedPanes.Refresh();
            }

            base.OnLayout(levent);
            foreach (DockPane pane in VisibleNestedPanes)
            {
                //pane.PerformLayout();
                pane.Invalidate();
                pane.Update();
            }
        }