<Window x:Class="RGV_WPF_AggregateSelectedRows.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:my="clr-namespace:RGV_WPF_AggregateSelectedRows"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        Title="MainWindow" Height="700" Width="700">
	<Window.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>
	</Window.Resources>
	<Grid DataContext="{StaticResource MyViewModel}">
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
       
        <telerik:RadGridView Name="playersGrid"
                                     ItemsSource="{Binding Players}" SelectionMode="Multiple"
                                     AutoGenerateColumns="False" >
					<telerik:RadGridView.Columns>
						<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/>
            </telerik:RadGridView.Columns>
            <i:Interaction.Behaviors>
                <my:MyMultiSelectBehavior/>
            </i:Interaction.Behaviors>
        </telerik:RadGridView>
        <StackPanel>
            <Button Content="Remove 1 item form selection" Click="Button_Click" Height="30" />
        </StackPanel>
    </Grid>
</Window>
