public virtual bool MouseDown(Control c, Point pt, MouseButtons button)
{
// Only interested if the mouse is over the element
if (_mouseOver)
{
// Only interested in left mouse pressing down
if (button == MouseButtons.Left)
{
if (ContextTabSet != null)
{
// We do not operate the context selection at design time
if (!_ribbon.InDesignMode && _ribbon.Enabled)
{
// Select the first tab in the context
ContextTabSet.FirstTab.RibbonTab.Ribbon.SelectedTab = ContextTabSet.FirstTab.RibbonTab;
}
}
}
}
return false;
}