<Window x:Class="DifferentToolWindowStyles.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:local="clr-namespace:DifferentToolWindowStyles"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen"
        Title="MainWindow" Height="350" Width="745">
    <Window.DataContext>
        <local:ViewModel />
    </Window.DataContext>
    <Grid>
       
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />


        </Grid.RowDefinitions>
        <telerik:RadDocking x:Name="radDocking" >
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane x:Name="firstPane" IsPinned="False" Header="Pane 1" DataContext="{Binding DataContext, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" IsHidden="{Binding IsHidden, Mode=TwoWay}"/>
                    <telerik:RadPane Header="Pane 2" />
                    <telerik:RadPane Header="Pane 3" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

        </telerik:RadDocking>

        <Button Grid.Row="1" Click="Button_Click" Content="Get RadPane in code" />
        <Button Grid.Row="2" Click="Button_Click1" Content="Show/Hide first pane" />

    </Grid>
</Window>
