Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Disable highlight effect when mouse focus ribbongroup Collapse All
Subject Author Date
LIVE GAME Jul 15, 2009 - 11:32 AM

For some reason, I want to disable the highlight effect when mouse hover the RibbonGroup control, thanks


 


 

Technical Support Jul 21, 2009 - 8:45 AM

You can achieve that by overriding the DetermineState method of the RibbonGroup as it is demonstrated below:

protected override Enum DetermineState()
{
            RibbonGroupState state = (RibbonGroupState)base.DetermineState();
            if (state == RibbonGroupState.Hovered)
                return RibbonGroupState.Normal;

            return state;
}