<Window x:Class="RadGridView_WPF_AR_83.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_83"
        Title="MainWindow" Height="700" Width="700">
	<Window.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>
        <DataTemplate x:Key="SmallStadiumTemplate">
            <TextBlock Text="{Binding StadiumCapacity}" Foreground="Blue"/>
        </DataTemplate>
        <DataTemplate x:Key="LargeStadiumTemplate">
            <TextBlock Text="{Binding StadiumCapacity}" Foreground="Green"/>
        </DataTemplate>
    </Window.Resources>
	<Grid DataContext="{StaticResource MyViewModel}">		
		<telerik:RadGridView Grid.Row="0" 
                             Name="clubsGrid" 
                             ItemsSource="{Binding Clubs}"                             
                             AutoGeneratingColumn="clubsGrid_AutoGeneratingColumn"
                             Margin="5">			
		</telerik:RadGridView>		
	</Grid>
</Window>
