Getting Started with WinUI Buttons
This guide provides the information you need to start using the Telerik UI for WinUI Buttons by adding the available button components to your project.
At the end, you will see the following buttons.
Prerequisites
Before adding the Buttons, you need to:
-
Create your Telerik UI for WinUI application and install the Telerik UI for WinUI components depending on the required installation approach:
Add the Assembly References
To use the DataForm component, add references to Telerik.WinUI.Controls.dll
and Telerik.Licensing.Runtime.dll
.
Define the Components
To start using the Buttons, you need to initialize the needed element and assign its Content
, Click
event handler, Command
or any other settings you need. The following example shows how to use the available buttons and subscribe to their Click
events.
To access the button elements in XAML, add a namespace that points to Telerik.UI.Xaml.Controls - xmlns:telerikControls="using:Telerik.UI.Xaml.Controls"
.
Adding a reference to the Telerik namespace
Defining RadButton
Button Click event handler

The next several examples show the other type of buttons. The Click
event handler's example is ommitted on purpose because it matches the one shown in the previous example (for RadButton
).
Defining RadToggleButton

Defining RadRadioButton

You can group a set of
RadRadioButton
in aStackPanel
. This way when you check one of the buttons, the others will get automatically unchecked.
Defining RadDropDownButton

Defining RadSplitButton
