New to Telerik UI for WPF? Start a free 30-day trial
Data Binding RadListBox SelectedItems Property
Updated on Sep 15, 2025
Environment
| Property | Value |
|---|---|
| Product | RadListBox for WPF |
| Version | 2024.1.312 |
Description
How to data bind the SelectedItems of RadListBox to a collection property in the view model.
Solution
This can be done via the ListBoxSelectedItemsBehavior.SelectedItemsSource attached property.
Defining the view model
C#
public class MainViewModel
{
public MainViewModel()
{
Items = new ObservableCollection<MyItemType>();
// populate the Items collection
SelectedItems = new ObservableCollection<MyItemType>();
}
public ObservableCollection<MyItemType> Items { get; set; }
public ObservableCollection<MyItemType> SelectedItems { get; set; }
}
Setting the SelectedItemsSource property
XAML
<telerik:RadListBox ItemsSource="{Binding Items}"
telerik:ListBoxSelectedItemsBehavior.SelectedItemsSource="{Binding SelectedItems}"
SelectionMode="Multiple" />