protected override void OnMouseClick(MouseEventArgs e) { base.OnMouseClick(e); if (Ribbon.RectangleToScreen(Ribbon.OrbBounds).Contains(PointToScreen(e.Location))) { Ribbon.OnOrbClicked(EventArgs.Empty); } }
protected override void OnMouseClick(MouseEventArgs e) { if (Ribbon.RectangleToScreen(Ribbon.OrbBounds).Contains(PointToScreen(e.Location))) { Ribbon.OnOrbClicked(EventArgs.Empty); //Steve - if click time is within the double click time after the drop down was shown, then this is a double click if (DateTime.Compare(DateTime.Now, OpenedTime.AddMilliseconds(SystemInformation.DoubleClickTime)) < 0) { Ribbon.OnOrbDoubleClicked(EventArgs.Empty); } } base.OnMouseClick(e); }