Comments: ** Comment from web user: BoucherS **
Hi,
Can you go in file :
-Xceed.Wpf.AvalonDock/Layout/Extensions.cs,
and replace the "GetSide" method with :
```
public static AnchorSide GetSide( this ILayoutElement element )
{
var parentContainer = element.Parent as ILayoutOrientableGroup;
if( parentContainer != null )
{
var layoutPanel = parentContainer as LayoutPanel;
if( layoutPanel == null )
{
layoutPanel = parentContainer.FindParent<LayoutPanel>();
}
if( (layoutPanel != null) && ( layoutPanel.Children.Count > 0 ) )
{
if( layoutPanel.Orientation == System.Windows.Controls.Orientation.Horizontal )
return layoutPanel.Children[ 0 ].Descendents().Contains( element ) ? AnchorSide.Left : AnchorSide.Right;
return layoutPanel.Children[ 0 ].Descendents().Contains( element ) ? AnchorSide.Top : AnchorSide.Bottom;
}
}
Debug.Fail( "Unable to find the side for an element, possible layout problem!" );
return AnchorSide.Right;
}
```
Tell me if it helps.
Thanks
――――
_Get more controls, features, updates and technical support with [Xceed Toolkit Plus for WPF](https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions)_