<Window x:Class="RadDockingSimpleWPF1.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"
        Title="MainWindow" Height="500" Width="900">
    <Grid>
        <telerik:RadDocking>

            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Left Pane 1">
                        <telerik:RadGridView>
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn Width="auto" >

                                    <telerik:GridViewDataColumn.Header>


                                        <StackPanel Orientation="Horizontal">

                                            <Button Content="Add New" 
                                                    Command="{Binding DataContext.CustomCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
                                                    x:Name="cmdAddNewSample"
                                                    Tag="AddOrUploadButton"
                                                    IsEnabled="{Binding DataContext.ButtonVisibility, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Margin="0,5,5,5"/>

                                        </StackPanel>

                                    </telerik:GridViewDataColumn.Header>

                                </telerik:GridViewDataColumn>
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>
                    </telerik:RadPane>

                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>


        </telerik:RadDocking>
    </Grid>
</Window>
