Esempio n. 1
0
        protected override System.Drawing.Size GetExpandSize()
        {
            ExpandablePanelContainer expandablePanelContainer = this.Parent as ExpandablePanelContainer;

            if (expandablePanelContainer == null)
            {
                return(base.GetExpandSize());
            }
            return(expandablePanelContainer.GetWorkRegionSize());
        }
Esempio n. 2
0
        protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);
            //
            ExpandablePanelContainer expandablePanelContainer = this.Parent as ExpandablePanelContainer;

            if (expandablePanelContainer != null)
            {
                expandablePanelContainer.ResetDefaultIndex();
            }
        }
Esempio n. 3
0
 protected override void OnMouseClick(MouseEventArgs e)
 {
     base.OnMouseClick(e);
     //
     if (e.Button == MouseButtons.Left)
     {
         if ((this.IsCaptionExpandArea && this.TitleRectangle.Contains(e.Location)) ||
             (this.ShowTreeNodeButton && this.GetTreeNodeButtonRectangle().Contains(e.Location)) ||
             (this.ShowExpandButton && this.GetExpandButtonRectangle().Contains(e.Location)))
         {
             ExpandablePanelContainer expandablePanelContainer = this.Parent as ExpandablePanelContainer;
             if (expandablePanelContainer == null)
             {
                 return;
             }
             expandablePanelContainer.SetSelectedExpandablePanel(this);
         }
     }
 }