The purpose of using the ChangeVisualState method is to include your new state, IsCurrent, in the visual states of your custom RadMenuItem. The method basically, contains a series of "if" blocks or "switch" statements that determine which visual state the menu item is in. To do that you have to call the GoToState method for the new visual state that your RadMenuItem is going to possess.
When calling the method, call base.ChangeVisualState()
to have the rest of the visual states functioning. Consider the following example:
I hope this helps.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>