Windows.UI.Xaml.Controls.Primitives.ButtonBase
June 22, 2022 ยท View on GitHub
-description
Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.
-remarks
ButtonBase derived classes
ButtonBase is the parent class for several immediately derived controls that refine specific button behaviors for UI interaction:
- Button
- HyperlinkButton
- RepeatButton
- ToggleButton (parent of RadioButton, AppBarToggleButton, CheckBox)
-examples
The following example demonstrates handling the Click event and setting the IsEnabled property of a Button, which inherits from ButtonBase.
[!code-xaml4]
[!code-csharp41]
[!code-vb41]