This project is read-only.

Could not resize to full screen when only one DockablePane in a DockingManager

Nov 27, 2010 at 4:28 PM
Edited Nov 27, 2010 at 4:32 PM

Hi All

The DockablePanel could not resize to full screen if my DockingManager content only one DockablePane. Is there anyway to solve this problem?

This is a simple example:

<Window x:Class="AvalonTest.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="*"/>
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <Menu>
            <MenuItem Header="File">
                <MenuItem Header="Exit"/>
            </MenuItem>
        </Menu>

        <ad:DockingManager x:Name="dockManager" Grid.Row="1">
            <ad:ResizingPanel Orientation="Horizontal">
                <ad:DockablePane>
                    <ad:DockableContent  Title="Classes"/>
                </ad:DockablePane>
                <!--<ad:DocumentPane>
                    <ad:DocumentContent Title="MyDocument!"/>
                </ad:DocumentPane>-->
            </ad:ResizingPanel>
        </ad:DockingManager>


        <StatusBar Grid.Row="2">
            <StatusBarItem Content="AvalonDock 1.3 Sample Project"/>
        </StatusBar>
    </Grid>

</Window>