<catel:Window x:Class="CatelSample.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:View_Controls="clr-namespace:CatelSample.Views.Base.Controls;assembly=CatelSample.Views" 
        xmlns:catel="http://catel.codeplex.com"
        xmlns:local="clr-namespace:CatelSample"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <catel:TabControl x:Name="TDIControl" Grid.Row="1" BorderThickness="0" BorderBrush="{x:Null}" Background="{x:Null}" Margin="0,2,0,0" LoadTabItems="LazyLoading" Style="{DynamicResource TabControlStyle}" >
            <catel:TabControl.ItemTemplate>
                <DataTemplate>
                    <View_Controls:ClosableTabItem Title="{Binding ViewModel.Title}" CanClose="{Binding CanClose}"/>
                </DataTemplate>
            </catel:TabControl.ItemTemplate>
            <catel:TabControl.ContentTemplate>
                <DataTemplate>
                    <ContentControl Content="{Binding ViewModel, Converter={catel:ViewModelToViewConverter}}" />
                </DataTemplate>
            </catel:TabControl.ContentTemplate>
        </catel:TabControl>
    </Grid>
</catel:Window>
