The Xceed.Wpf.Toolkit.LiveExplorer contains an AvalonDock Theming demonstration which I've been trying to follow. However, the demo seems to suffer from an issue when the user tries to resize a LayoutAnchorable in AutoHide mode following a theme change.
To reproduce the issue, change the theme in the Live Explorer demo from Generic to VS2010. Then click agenda to unhide the Agenda LayoutAnchorable window. Attempts to resize the LayoutAnchorable result in the following exception:
System.InvalidOperationException occurred
Message: Exception thrown: 'System.InvalidOperationException' in PresentationCore.dll
Additional information: This Visual is not connected to a PresentationSource.
I have not seen a solution to this problem, but it's possible that I did not stumble upon the right web page before posting the issue.
Comments: ** Comment from web user: BoucherS **
To reproduce the issue, change the theme in the Live Explorer demo from Generic to VS2010. Then click agenda to unhide the Agenda LayoutAnchorable window. Attempts to resize the LayoutAnchorable result in the following exception:
System.InvalidOperationException occurred
Message: Exception thrown: 'System.InvalidOperationException' in PresentationCore.dll
Additional information: This Visual is not connected to a PresentationSource.
I have not seen a solution to this problem, but it's possible that I did not stumble upon the right web page before posting the issue.
Comments: ** Comment from web user: BoucherS **
Hi,
This will be fixed in v3.3.
In the meantime, you can go in file Xceed.Wpf.AvalonDock/DockingManager.cs
and move the line :
```
_autohideArea = GetTemplateChild( "PART_AutoHideArea" ) as FrameworkElement;
```
from method
"SetupAutoHideWindow"
to method
"OnApplyTemplate".
――――
_Get more controls, features, updates and technical support with [Xceed Toolkit Plus for WPF](https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions)_