# Getting Started with WinUI Rating

This topic demonstrates how to start using RadRating for WinUI.

## Assembly References

In order to use the RadChart suite in your projects, you have to add references to the following assembly:

* `Telerik.WinUI.Controls.dll`
* `Telerik.Licensing.Runtime.dll`

## Defining a RadRating

Here is how RadRating is declared in XAML:

> You can access the **RadRating** control through an alias pointing to the **Telerik.UI.Xaml.Controls.Input** namespace: `xmlns:input="using:Telerik.UI.Xaml.Controls.Input"`

#### **Example 1: Adding a RadRating in XAML**

```XAML
<input:RadRating />
```

## Modifying RadRating Items

The number of rating items can be changed by setting the **AutoGeneratedItemsCount** or manually adding items of type **RadRatingItem**.

#### **Example 2: Manually Declare RadRatingItems**

```XAML
<input:RadRating>
	<input:RadRating.Items>
		<input:RadRatingItem/>
		<input:RadRatingItem/>
		<input:RadRatingItem/>
		<input:RadRatingItem/>
		<input:RadRatingItem/>
	</input:RadRating.Items>
</input:RadRating>
```

> Only one of the methods for defining the number of items should be used. If you try to add items manually when the AutoGeneratedItemsCount is set, or try to set this property

when the current items have been added manually, this would cause an exception.

## Telerik UI for WinUI Learning Resources

* [Telerik UI for WinUI Rating Component](https://www.telerik.com/winui/rating)
* [Getting Started with Telerik UI for WinUI Components](https://www.telerik.com/winui/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WinUI Installation](https://www.telerik.com/winui/documentation/installation-and-deployment/installing-which-file-do-i-need)
* [Telerik UI for WinUI Examples](https://www.telerik.com/winui/documentation/examples/demos-app)
* [Telerik UI for WinUI Accessibility](https://www.telerik.com/winui/documentation/common/accessibility)
* [Telerik UI for WinUI License Agreement](https://www.telerik.com/purchase/license-agreement/winui)
