Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: AvalonDock: Left/right docking is broken when LayoutAnchorable is docked to LayoutDocument [22492]

$
0
0
Simple repro XAML:

```
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication1"
xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
mc:Ignorable="d"
Title="MainWindow"
Height="350"
Width="525">
<Grid>
<xcad:DockingManager>
<xcad:LayoutRoot>
<xcad:LayoutRoot.RootPanel>
<xcad:LayoutPanel Orientation="Vertical">
<xcad:LayoutDocumentPaneGroup>
<xcad:LayoutDocumentPane>
<xcad:LayoutDocument Title="Document1">
<TextBlock Text="Document1" />
</xcad:LayoutDocument>
</xcad:LayoutDocumentPane>
</xcad:LayoutDocumentPaneGroup>
<xcad:LayoutAnchorablePaneGroup>
<xcad:LayoutAnchorablePane>
<xcad:LayoutAnchorable Title="Anchorable1">
<TextBlock Text="Anchorable1" />
</xcad:LayoutAnchorable>
</xcad:LayoutAnchorablePane>
<xcad:LayoutAnchorablePane>
<xcad:LayoutAnchorable Title="Anchorable2">
<TextBlock Text="Anchorable2" />
</xcad:LayoutAnchorable>
</xcad:LayoutAnchorablePane>
</xcad:LayoutAnchorablePaneGroup>
</xcad:LayoutPanel>
</xcad:LayoutRoot.RootPanel>
</xcad:LayoutRoot>
</xcad:DockingManager>
</Grid>
</Window>
```

Repro steps:
* Move "Anchorable1" pane up so that it's docked with "Document1" (and internally it appears to convert from an Anchorable to Document
* Try to dock "Anchorable2" pane to "Anchorable1" pane on the left or right side and note that the left/right arrows are missing.

This can be worked around but it's rather clunky:

* Make "Anchorable1" pane floating
* Dock "Anchorable2 to Anchorable1's left or right side
* Now dock the combined Anchorable1/Anchorable2 pane to "Document1"
Comments: ** Comment from web user: BoucherS **

Hi,

I'm guessing you are using AvalonDock v3.2.

This is not a bug.

When loading, you have a LayoutDocumentPaneGroup (with the LayoutDocument Document1) and under, a LayoutAnchorablePaneGroup(with 2 LayoutAnchorables : Anchorable1 and Anchorable2).

When you drag Anchorable1 into Document1, you have the choice of putting it anywhere : middle/Top/Left/Bottom/Right to make it a LayoutDocument or the 4 sides to make it a LayoutAnchorable.
Based on your attachment, you have chosen to drop the LayoutAnchorable at "Bottom" to make it a LayoutDocument.

At this moment, you have a LayoutDocumentPaneGroup with 2 children (Document1 and Anchorable1) and since you have chosen "Bottom", the Orientation of the LayoutDocumentPaneGroup will be set to Vertical.

From there, dragging Anchorable2 on Anchorable1 will give you what you see : middle/Top/Bottom (no Right/Left because we have a vertical panel) to make it a LayoutDocument or the 4 sides to make it a LayoutAnchorable.

When you drop a LayoutAnchorable into a LayoutDocumentPaneGroup, its orientation will be set depending on where you have drop this first LayoutAnchorable.

――――
_Get more controls, features, updates and technical support with [Xceed Toolkit Plus for WPF](https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions)_


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>