<Window x:Class="RadDockingAndPRISM.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
	xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
    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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:radDockingAndPrism="clr-namespace:RadDockingAndPRISM"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Window.Resources>
        <Style x:Key="RadPaneFactoryStyle" TargetType="{x:Type telerik:RadPane}">
            <Setter Property="Header" Value="{Binding Title}"/>
        </Style>
    </Window.Resources>
    <Grid>
        <StackPanel Orientation="Horizontal">
            <RadioButton Foreground="Red" IsChecked="True" Content="Use Standard Content Control" Checked="SelectNonCache"/>
            <RadioButton Foreground="Green" Content="Use Cache Content Control" Checked="SelectCache"/>
            <Button Margin="5,0" Content=" Run GC"  Click="RunGC"/>
        </StackPanel>
        <telerikDocking:RadDocking Margin="0,40,0,0">
            <telerikDocking:RadDocking.DocumentHost>
                <telerikDocking:RadSplitContainer >
                    <telerikDocking:RadPaneGroup regions:RegionManager.RegionName="MainRegion"
                                                 ItemContainerStyle="{StaticResource RadPaneFactoryStyle}"
                                                 >
                        
                    </telerikDocking:RadPaneGroup>
                </telerikDocking:RadSplitContainer>
            </telerikDocking:RadDocking.DocumentHost>

            <telerikDocking:RadSplitContainer InitialPosition="DockedRight">
                <telerikDocking:RadPaneGroup regions:RegionManager.RegionName="MainRegion1"
                                             ItemContainerStyle="{StaticResource RadPaneFactoryStyle}"
                                             >
                    
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>
         
        </telerikDocking:RadDocking> 
    </Grid>
</Window>
