<Window x:Class="RadDockingWithRadGridView.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:RadDockingWithRadGridView"
		Title="MainWindow" Height="700" Width="700">
	<Window.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>
	</Window.Resources>
	<Grid>
	
		<telerik:RadDocking Name="uxMainDockingWindow" DataContext="{StaticResource MyViewModel}">
			<telerik:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal" Height="100">
				<telerik:RadPaneGroup >
					<telerik:RadPane Header="Current Item">
						<TextBox Text="aaaaa" />
					</telerik:RadPane>
				</telerik:RadPaneGroup>
				<telerik:RadPaneGroup>
					<telerik:RadPane Header="Last events">
						<TextBox Text="aaaaa" />
					</telerik:RadPane>
				</telerik:RadPaneGroup>
			</telerik:RadSplitContainer>-->
			<telerik:RadSplitContainer Name="uxListSpliter" InitialPosition="DockedLeft" Width="450">
				<telerik:RadPaneGroup>
					<telerik:RadPane Header="Players">
						<telerik:RadGridView Name="playersGrid" 
											 ItemsSource="{Binding Players}" 
											 AutoGenerateColumns="False">
							<telerik:RadGridView.Columns>
								<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
								<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/>
								<telerik:GridViewDataColumn DataMemberBinding="{Binding Position}"/>
								<telerik:GridViewDataColumn DataMemberBinding="{Binding Country}"/>
							</telerik:RadGridView.Columns>
						</telerik:RadGridView>
					</telerik:RadPane>
				</telerik:RadPaneGroup>
			</telerik:RadSplitContainer>
			<telerik:RadDocking.DocumentHost>
				<telerik:RadSplitContainer>
					<telerik:RadPaneGroup>
						<telerik:RadDocumentPane Header="Households Details">
							<Grid>
								<StackPanel Orientation="Vertical">
									<Label>
										First Name
									</Label>								
									<TextBox Name="uxTextFirstName" Text="{Binding ElementName=playersGrid, Path=SelectedItem.Name, Mode=TwoWay}"/>									
									<Button Content="TestBt" />
								</StackPanel>
							</Grid>
						</telerik:RadDocumentPane>
						<telerik:RadDocumentPane Header="Orders"/>
					</telerik:RadPaneGroup>
				</telerik:RadSplitContainer>
			</telerik:RadDocking.DocumentHost>
		</telerik:RadDocking>
	</Grid>
</Window>
