<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="WPF_RadGridView.Window1"
	x:Name="Window"
	Title="Window1"
	Width="640" Height="480" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

	<Window.Resources>
		<Style x:Key="RadGridViewStyle1" TargetType="{x:Type telerik:RadGridView}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type telerik:RadGridView}">
						<AdornerDecorator>
							<Border x:Name="PART_MasterGridContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="30"/>
										<RowDefinition Height="*"/>
									</Grid.RowDefinitions>
									<Grid Grid.Row="0">
										<Grid.ColumnDefinitions>
											<ColumnDefinition Width="*"/>
											<ColumnDefinition Width="*"/>
										</Grid.ColumnDefinitions>
										<Button Content="Add new row" Click="AddNewRow_Click"/>
										<Button Content="Delete current row" Click="DeleteCurrentRow_Click" Grid.Column="1"/>
									</Grid>
									<telerik:GridViewItemsControl x:Name="PART_RootItemsControl" Background="{TemplateBinding Background}" IsTabStop="True" Grid.Row="1" GridViewGroupPanel="{x:Null}" ParentRow="{TemplateBinding ParentRow}" ScrollMode="{TemplateBinding ScrollMode}" ShowColumnHeaders="{TemplateBinding ShowColumnHeaders}" ShowGroupPanel="{TemplateBinding ShowGroupPanel}" VisibleRowsHeight="0" >
										<telerik:StyleManager.Theme>
											<telerik:Office_BlackTheme/>
										</telerik:StyleManager.Theme>
									</telerik:GridViewItemsControl>
									<telerik:GridViewLoadingIndicator Visibility="Collapsed" IsTabStop="False" x:Name="PART_GridViewLoadingIndicator" Grid.RowSpan="2">
										<telerik:StyleManager.Theme>
											<telerik:Office_BlackTheme/>
										</telerik:StyleManager.Theme>
									</telerik:GridViewLoadingIndicator>
								</Grid>
							</Border>
						</AdornerDecorator>
						<ControlTemplate.Triggers>
							<Trigger Property="IsBusy" Value="True">
								<Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Visible"/>
							</Trigger>
							<Trigger Property="IsBusy" Value="False">
								<Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Collapsed"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="VerticalGridlinesBrush" Value="#FFB3B3B3"/>
			<Setter Property="Background" Value="#FF7F7F7F"/>
			<Setter Property="BorderBrush" Value="{x:Null}"/>
			<Setter Property="BorderThickness" Value="0,0,0,0"/>
		</Style>
	</Window.Resources>

	<Grid x:Name="LayoutRoot">
		<telerik:RadGridView x:Name="radGridView1" Style="{StaticResource RadGridViewStyle1}"/>
	</Grid>
</Window>