This project is read-only.

Border thickness consistency between LayoutAnchorablePaneGroup and LayoutDocumentPaneGroup

Nov 26, 2013 at 1:05 AM
I'm having a problem with border inconsistency between LayoutAnchorablePaneGroup and LayoutDocumentPaneGroup. There is a border at the bottom of the AnchorablePane but not one on the DocumentPane. I would like to get rid of the AnchorablePane's border so it lines up with the DocumentPane, but not sure how to accomplish this.

My Code:
<Window x:Class="DockTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xcad="http://schemas.xceed.com/wpf/xaml/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>
        <xcad:DockingManager x:Name="dockManager" Grid.Row="1">         
            <xcad:LayoutRoot>
                <xcad:LayoutPanel Orientation="Horizontal">
                    <xcad:LayoutAnchorablePaneGroup Orientation="Vertical" DockWidth="100">
                        <xcad:LayoutAnchorablePane>
                            <xcad:LayoutAnchorable x:Name="Anchorable1">
                                <Border Background="Yellow"/>
                            </xcad:LayoutAnchorable>
                        </xcad:LayoutAnchorablePane>
                        <xcad:LayoutAnchorablePane>
                            <xcad:LayoutAnchorable x:Name="Anchorable2">
                                <Border Background="Black"/>
                            </xcad:LayoutAnchorable>
                        </xcad:LayoutAnchorablePane>
                    </xcad:LayoutAnchorablePaneGroup>         
                    <xcad:LayoutDocumentPaneGroup Orientation="Vertical">
                        <xcad:LayoutDocumentPane >                       
                            <xcad:LayoutDocument ContentId="document1" Title="Document 1">
                                <Button Content="Document 1 Content" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </xcad:LayoutDocument>
                        </xcad:LayoutDocumentPane>
                        <xcad:LayoutDocumentPane>
                            <xcad:LayoutDocument ContentId="document2" Title="Document 2">
                                <TextBox Text="Document 2 Content" AcceptsReturn="True"/>
                            </xcad:LayoutDocument>
                        </xcad:LayoutDocumentPane>
                    </xcad:LayoutDocumentPaneGroup >
                    <xcad:LayoutAnchorablePaneGroup Orientation="Vertical" DockWidth="100">
                        <xcad:LayoutAnchorablePane DockWidth="100">
                            <xcad:LayoutAnchorable x:Name="Anchorable3">
                                <Border Background="Yellow"/>
                            </xcad:LayoutAnchorable>
                        </xcad:LayoutAnchorablePane>
                        <xcad:LayoutAnchorablePane DockWidth="100">
                            <xcad:LayoutAnchorable x:Name="Anchorable4">
                                <Border Background="Black"/>
                            </xcad:LayoutAnchorable>
                        </xcad:LayoutAnchorablePane>                        
                    </xcad:LayoutAnchorablePaneGroup>
                </xcad:LayoutPanel>
            </xcad:LayoutRoot>
        </xcad:DockingManager>
        <StatusBar Grid.Row="2">
            <StatusBarItem Content="AvalonDock 1.3 Sample Project"/>
        </StatusBar>
    </Grid>
</Window>
Here is a image of my problem:
Image

As you can see they line up at the top, but not at the bottom?
Nov 27, 2013 at 10:41 PM
Edited Nov 27, 2013 at 10:44 PM
Not really helping you but I noticed this problem too (mesured 2px difference) and it bother me but I didn't managed to fix it actually.
I noticed the margin difference between the tab panel in DocumentPaneControlStyle (2,2,2,0) and AnchorablePaneControlStyle (2,0,2,2).

I'll follow this thread, and hope someone has the solution !