Toggle State in WPF Button (ButtonAdv)
4 Sep 2020 / 1 minute to read
The button control can also be used as a toggle button, similar to the on/off view when the IsCheckable property is set to true. The default value of this property is false.
NOTE
In addition to IsCheckable property, the IsChecked property helps to check the button by default. In other words, during initial rendering, the button will appear in on state using the later property.
<syncfusion:ButtonAdv Label="Log-in" SmallIcon="image/employee.png" SizeMode="Normal" IsCheckable="True" IsChecked="True"/>
ButtonAdv button = new ButtonAdv();
button.Label = "Log-in";
button.SizeMode = SizeMode.Normal;
button.SmallIcon = new BitmapImage(new Uri("employee.png"));
button.IsCheckable = true;
button.IsChecked = true;
Checkable Button control
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page