<UserControl x:Class="ListBoxSelectedItems_SL.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
	xmlns:local="clr-namespace:ListBoxSelectedItems_SL"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
	<UserControl.Resources>
		<local:MyViewModel x:Key="MyViewModel"/>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" Background="White" >
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition/>
		</Grid.RowDefinitions>
		<telerik:RadListBox ItemsSource="{Binding Countries}"
							DisplayMemberPath="Name"
							x:Name="ListBox"
							local:SelectedItemsHelper.SelectedItems="{Binding SelectedCountries}"
							SelectionMode="Multiple"
							VerticalAlignment="Center" HorizontalAlignment="Center"/>
		<Button Content="Change SelectedItems" 
				Click="Button_Click_1" 
				Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
	</Grid>
</UserControl>
