<Window x:Class="MultipleChildDataInTabControl.Window1"
    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"
    Title="Window1" Height="600" Width="800">
    <Grid>
		<Grid.Resources>
			<Style TargetType="{x:Type TabItem}">
				<Setter Property="Header" Value="{Binding TableDefinition.Relation.Name}" />
				<Setter Property="Content" Value="{Binding TableDefinition.DataSource}" />
				<Setter Property="ContentTemplate">
					<Setter.Value>
						<DataTemplate>
							<telerik:RadGridView ItemsSource="{Binding}" />
						</DataTemplate>
					</Setter.Value>
				</Setter>
			</Style>

			<Style TargetType="telerik:ChildDataControlsPresenter">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="telerik:ChildDataControlsPresenter">
							<TabControl Name="PART_ChildDataItemsControl" ItemsSource="{Binding}" />
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
		</Grid.Resources>
		<telerik:RadGridView x:Name="radGridView1" />
	</Grid>
</Window>
