<Window x:Class="ListBoxSelectedItems_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:local="clr-namespace:ListBoxSelectedItems_WPF"
        Title="MainWindow" Height="700" Width="525">
	<Window.Resources>
		<local:MyViewModel x:Key="MyViewModel"/>
	</Window.Resources>
    <Grid>
		<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>
</Window>
