<Window x:Class="WPFDocking.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="24"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="0"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Menu>
            <MenuItem Header="Datei">
                <MenuItem Header="_Neu"></MenuItem>
                <MenuItem Header="Öffnen..."></MenuItem>
                <MenuItem Header="Speichern"></MenuItem>
                <MenuItem Header="Speichern unter..."></MenuItem>
                <Separator />
                <MenuItem Header="Ende" ></MenuItem>
            </MenuItem>
            <MenuItem Header="Bearbeiten"></MenuItem>
        </Menu>
        <ToolBar Grid.Row="1">
            <DockPanel>
                <Button Command="ApplicationCommands.New">
                    <Image Source="/WPFDocking;component/Images/new.png"></Image>
                </Button>
                <Button >
                    <Image Source="/WPFDocking;component/Images/open.png"></Image>
                </Button>
                <Button >
                    <Image Source="/WPFDocking;component/Images/save.png"></Image>
                </Button>
            </DockPanel>
        </ToolBar>
        <ad:DockingManager x:Name="dockManager" Grid.Row="3" DocumentsSource="{Binding MyDocuments}">
            <ad:ResizingPanel>
                <ad:DockablePane ad:ResizingPanel.ResizeWidth="120">
                    <ad:DockableContent Title="Presets" >
                    </ad:DockableContent>
                    <ad:DockableContent  Title="Documents">
                        <Border>
                            <ListBox ItemsSource="{Binding MyDocuments}" x:Name="listOfDocuments">
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Title}"/>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                        </Border>
                    </ad:DockableContent>
                </ad:DockablePane>
                <ad:DocumentPane>
                </ad:DocumentPane>
            </ad:ResizingPanel>
        </ad:DockingManager>
        <StatusBar Grid.Row="4" >
            <Label>Information:</Label>
        </StatusBar>
    </Grid>
</Window>
