# Declaratively

This tutorial will walk you through the common task of populating **RadRating** with **RadRatingItems** declaratively.

Example 1 demonstrates a regular **RadRating** declaration, where **telerik** points to: **\<xmlns:telerik="<http://schemas.telerik.com/2008/xaml/presentation>" />**

**Example 1: Declare a RadRating**

```XAML
<telerik:RadRating x:Name="radRating" />
```

> caption Result from example 1

![RadRating](https://www.telerik.com/products/wpf/documentation/assets/a4b0259656e28adb889e5f6150286891/rating_default.png)

In order to add rating items you need to use the **RadRating's** **Items** property. The **Items** property is an **ItemCollection** which contains your **RadRatingItems**. Example 2 shows how to add RadRatingItems to your RadRating.

**Example 2: Adding RadRatingItems**

```XAML
<telerik:RadRating x:Name="radRating2">
    <telerik:RadRatingItem Content="1" />
    <telerik:RadRatingItem Content="2" />
    <telerik:RadRatingItem Content="3" />
    <telerik:RadRatingItem Content="4" />
    <telerik:RadRatingItem Content="5" />
    <telerik:RadRatingItem Content="6" />
    <telerik:RadRatingItem Content="7" />
    <telerik:RadRatingItem Content="8" />
    <telerik:RadRatingItem Content="9" />
    <telerik:RadRatingItem Content="10" />
</telerik:RadRating>
```

> caption Result from example 2

![RadRating with RadRatingItems](https://www.telerik.com/products/wpf/documentation/assets/e45b70835590fd0ab01f1bc897a6e990/rating_with_10_items.png)

> tip Consider declaring rating items in XAML instead of adding them by code whenever it's possible. This includes situations when you know what items you need at design time.
