# In Code Behind

This tutorial will walk you through the common tasks of adding and removing **RadListBoxItems** programmatically.

**Example 1: RadListBox without Items**

```XAML
<telerik:RadListBox x:Name="radListBox" Width="200">
</telerik:RadListBox>
```

## Adding RadListBoxItems

In order to add items to a **RadListBox**, you can create new **RadListBoxItems** and add them to the **Items** collection of the control.

**Example 2: Populating RadListBox with items from code-behind**

```C#


var item1 = new RadListBoxItem() { Content = "Australia" };
radListBox.Items.Add(item1);
var item2 = new RadListBoxItem() { Content = "Brazil" };
radListBox.Items.Add(item2);

```

> caption RadListBox populated in code

![radlistbox populatingwithdata incodebehind](https://www.telerik.com/products/wpf/documentation/assets/fc0feacfbd21fb10dd33b511d4991a28/radlistbox_populatingwithdata_incodebehind.png)

## Removing RadListBoxItems

In order to remove a specific **RadListBoxItem**, you should remove it from the **RadListBox**'s **Items** collection.

**Example 3: Removing RadListBoxItems**

```C#
private void RemoveFirstItem()
{
    this.radListBox.Items.Remove(this.radListBox.Items[0]);
}
```

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radlistbox/getting-started)
