Hi, I’m testing AvalonDock control included in Extended WPF Toolkit 2.0. I have the following xaml.
<Window x:Class="AvalonDockTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock"
Title="MainWindow" Height="600" Width="700">
<Grid>
<avalonDock:DockingManager>
<avalonDock:LayoutRoot>
<avalonDock:LayoutPanel>
<avalonDock:LayoutAnchorablePaneGroup>
<avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutAnchorable Title="Main Anchorable"
CanClose="False" CanHide="False" CanAutoHide="False">
<TextBlock />
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorablePane>
</avalonDock:LayoutAnchorablePaneGroup>
</avalonDock:LayoutPanel>
<avalonDock:LayoutRoot.LeftSide>
<avalonDock:LayoutAnchorSide>
<avalonDock:LayoutAnchorGroup>
<avalonDock:LayoutAnchorable Title="Left Side Anchorable"
CanClose="False" CanHide="False" CanAutoHide="True"
AutoHideMinWidth="300">
<TextBox/>
</avalonDock:LayoutAnchorable>
</avalonDock:LayoutAnchorGroup>
</avalonDock:LayoutAnchorSide>
</avalonDock:LayoutRoot.LeftSide>
</avalonDock:LayoutRoot>
</avalonDock:DockingManager>
</Grid>
</Window>
When I run the code above, the "Left Side Anchorable" is hidden at left side of window. Then if I click “Auto Hide” button (pin icon) of "Left Side Anchorable", the anchorable is docked to left side of the window. However, if I click “Auto Hide” button again to hide the "Left Side Anchorable", it gets hidden to right side of application instead of left side. Is there way to specify which side I want to hide the anchorable?