Getting Started with WinUI Badge
This guide provides the information you need to start using the Telerik UI for WinUI Badge by adding the component to your project.
At the end, you will be able to achieve the following result.
Prerequisites
Before adding the Badge, 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 RadBadge
and RadBadgeView
components, add references to Telerik.WinUI.Controls.dll
and Telerik.Licensing.Runtime.dll
.
Define the Component
The following example demonstrates how to define the Badge component. You can access the Badge through the xmlns:primitives="using:Telerik.UI.Xaml.Controls.Primitives"
alias that points to the Telerik.UI.Xaml.Controls.Primitives
namespace.
Define the Badge
Define the RadBadgeView
The RadBadgeView
component is a container for adding the content of the Badge and its position based on this content.
The following example demonstrates how to define the RadBadgeView
component. You can access the RadBadgeView
component through the xmlns:core="using:Telerik.UI.Xaml.Controls"
alias that points to the Telerik.UI.Xaml.Controls.Primitives
namespace.