<Window x:Class="RadGridView_WPF_AR_1.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:RadGridView_WPF_AR_1"
        Title="MainWindow" Height="700" Width="700">
	<Window.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>
		<SolidColorBrush x:Key="Brush1" Color="Red" />
		<SolidColorBrush x:Key="Brush2" Color="Blue" />
		<Style TargetType="{x:Type telerik:RadGridView}" BasedOn="{StaticResource RadGridViewStyle}">
			<Setter Property="GridLinesVisibility" Value="Vertical" />
			<Setter Property="ValidatesOnDataErrors" Value="InEditMode" />
			<Setter Property="VerticalAlignment" Value="Stretch" />
			<Setter Property="HorizontalAlignment" Value="Stretch" />
			<Setter Property="IsReadOnly" Value="True" />
			<Setter Property="ShowGroupPanel" Value="False" />
			<!--<Setter Property="ShowColumnSortIndexes" Value="False" />-->
			<!--This is not possible, because no DP!-->
			<Setter Property="RowIndicatorVisibility" Value="Collapsed" />
			<Setter Property="IsFilteringAllowed" Value="False" />
			<Setter Property="CanUserSortColumns" Value="False" />
			<Setter Property="CanUserSortGroups" Value="False" />
			<Setter Property="CanUserReorderColumns" Value="False" />
			<Setter Property="CanUserResizeColumns" Value="False" />
			<Setter Property="CanUserResizeRows" Value="False" />
			<Setter Property="CanUserFreezeColumns" Value="False" />
			<Setter Property="FontSize" Value="{DynamicResource FontSize}" />
			<Setter Property="FontFamily" Value="{DynamicResource FontFamily}" />
			<Setter Property="EnableColumnVirtualization" Value="False" />
			<Setter Property="EnableRowVirtualization" Value="True" />
			<Setter Property="GroupRenderMode" Value="Flat" />
		</Style>
	</Window.Resources>
	<Grid DataContext="{StaticResource MyViewModel}">
		<telerik:RadGridView ItemsSource="{Binding Clubs}" GroupRenderMode="Flat">
			<telerik:RadGridView.RowStyleSelector>
				<my:AStyleSelector>
					<my:AStyleSelector.Style1>
						<Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowCoreStyle}">
							<Setter Property="Background" Value="{DynamicResource Brush1}" />
						</Style>
					</my:AStyleSelector.Style1>
					<my:AStyleSelector.Style2>
						<Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowCoreStyle}">
							<Setter Property="Background" Value="{DynamicResource Brush2}" />
						</Style>
					</my:AStyleSelector.Style2>
				</my:AStyleSelector>
			</telerik:RadGridView.RowStyleSelector>
		</telerik:RadGridView>
	</Grid>
</Window>
