예제 #1
0
 /// <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(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.
 }