public virtual void MouseUp(Control c, Point pt, MouseButtons button)
{
// If user is releasing the right mouse button
if (button == MouseButtons.Right)
{
// And it was pressed over the tab
if (_rightButtonDown)
{
_rightButtonDown = false;
// Raises event so a context menu for the ribbon can be shown
OnContextClick(new MouseEventArgs(MouseButtons.Right, 1, pt.X, pt.Y, 0));
}
}
}