/// <summary> /// Initializes the designer with the specified component. /// </summary> /// <param name="component">The IComponent to associate with the designer.</param> public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); this.m_xpanderPanelList = (XPanderPanelList)this.Control; //Disable the autoscroll feature for the control during design time. The control //itself sets this property to true when it initializes at run time. Trying to position //controls in this control with the autoscroll property set to True is problematic. this.m_xpanderPanelList.AutoScroll = false; }
/// <summary> /// Called when any mouse-down message enters the adorner window of the BehaviorService. /// </summary> /// <param name="g">A Glyph.</param> /// <param name="button">A MouseButtons value indicating which button was clicked.</param> /// <param name="mouseLoc">The location at which the click occurred.</param> /// <returns>true if the message was handled; otherwise, false. </returns> public override bool OnMouseDown(System.Windows.Forms.Design.Behavior.Glyph g, MouseButtons button, Point mouseLoc) { if ((this.m_xpanderPanel != null) && (this.m_xpanderPanel.Expand == false)) { XPanderPanelList xpanderPanelList = this.m_xpanderPanel.Parent as XPanderPanelList; if (xpanderPanelList != null) { xpanderPanelList.Expand(this.m_xpanderPanel); this.m_xpanderPanel.Invalidate(false); } } return(true); // indicating we processed this event. }
internal XPanderPanelCollection(XPanderPanelList xpanderPanelList) { this.m_xpanderPanelList = xpanderPanelList; this.m_controlCollection = this.m_xpanderPanelList.Controls; }