Description
Toggle button
This widget has two APIs for the toggle state:
- bool IsChecked, used for true/false state. The IsCheckedBinding is set to private.
- bool CheckState, used for null/true/false state, can be set to null after initialized only when IsThreeState is true. There is also a CheckStateBinding for CheckState.
Class Hierarchy
Autodesk.Windows.RibbonItem Autodesk.Windows.RibbonCommandItem Autodesk.Windows.RibbonButton Autodesk.Windows.RibbonToggleButton Autodesk.Windows.ToolBars.ToolBarShareButton
Visual Basic
Public Class RibbonToggleButton Inherits RibbonButton
C#
public class RibbonToggleButton : RibbonButton;
Notes
IsChecked will be true only when CheckState is true. This is useful for those who want to use the check state as a bool value directly.
Please use CheckState as much as possible.