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

Edited Issue: AvalonDock [22496]

$
0
0
Avalondock 3 autohide button always auto hides to the right. Can anyone help to resolve the issue?
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)_


Viewing all articles
Browse latest Browse all 4964

Trending Articles



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