private void OnMouseEnterControl(object sender, EventArgs e)
{
// Reset the active group setting
_activeGroup = null;
// Find the parent group instance
ViewBase parent = Parent;
// Keep going till we get to the top or find a group
while (parent != null)
{
if (parent is ViewDrawRibbonGroup)
{
_activeGroup = (ViewDrawRibbonGroup)parent;
break;
}
// Move up a level
parent = parent.Parent;
}
// If we found a group we are inside
if (_activeGroup != null)
{
_activeGroup.Tracking = true;
_needPaint(this, new NeedLayoutEventArgs(false, _activeGroup.ClientRectangle));
}
}