-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Controls.Primitives.ButtonBase |
winrt class |
Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.
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)
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]