Events in WPF Button (ButtonAdv)

The ButtonAdv comprises of the pre-defined events that are illustrated below.

Click

The events occurs when the button control is clicked and any action can be handled in the respective event handler.

<syncfusion:ButtonAdv Click="button_Click"/>
ButtonAdv button = new ButtonAdv();
button.Click += new RoutedEventHandler(button_Click);

private void button_Click(object sender, RoutedEventArgs e)
{

}

Checked

The event occurs when the button control is utilized as toggle button, that is, when IsCheckable property value is set to true. Any action can be handled in the respective event handler.

<syncfusion:ButtonAdv IsCheckable="true" Checked="button_Checked"/>
ButtonAdv button = new ButtonAdv();
button.IsCheckable = true;
button.Checked += new RoutedEventHandler(button_Checked);

private void button_Checked(object sender, RoutedEventArgs e)
{
          
}