[]
        
(Showing Draft Content)

Toggle Button

The toggle button is the hamburger button that users select to expand or collapse the menu. You can customize its appearance, or hide it when your app expands and collapses the menu in another way.

C1WinForms Hamburger Menu - Toggle button demo


Customize the Toggle Button

The ToggleButton property provides access to the button. Use it to configure the button’s Icon, Text, and ToolTipText.

The following example sets the tooltip of the toggle button:

c1HamburgerMenu1.ToggleButton.ToolTipText = "Show or hide navigation";

Hide the Toggle Button

If your app expands and collapses the menu through a separate command, set the button’s Visible property to false:

c1HamburgerMenu1.ToggleButton.Visible = false;

To expand or collapse the menu from your own command, set the IsExpanded property. For more information, see Run-Time Customization.