Button
The RadButton
control extends the native Button
component by providing an additional command target support and consistent theming with the other Telerik components.
The Button is a basic WinUI conrtol that allows you to click on it and execute on action when this happen. The RadButton
implementation comes with a full ICommandSource
implementation that provides also a CommandTarget
property compared to the native Button
where this is missing.
The following example shows how to define a button in XAML and subscribe to its Click
event.
Defining RadButton
<telerikControls:RadButton Content="RadButton" Click="Button_Click"/>
Button Click event handler
private void Button_Click(object sender, RoutedEventArgs e)
{
}