Dockable Windows and RegionManager

Oct 30, 2008 at 2:45 PM
Edited Oct 31, 2008 at 1:07 AM
we use a docking framework with composite WPF. If we move a dock window, we got the following error message.

  Message="ContentControl's Content property is not empty. \r\n    This control is being associated with a region, but the control is already bound to something else. \r\n    If you did not explicitly set the control's Content property, \r\n    this exception may be caused by a change in the value of the inherited RegionManager attached property."
       bei Microsoft.Practices.Composite.Wpf.Regions.ContentControlRegionAdapter.Adapt(IRegion region, ContentControl regionTarget)
       bei Microsoft.Practices.Composite.Wpf.Regions.RegionAdapterBase`1.Initialize(T regionTarget)
       bei Microsoft.Practices.Composite.Wpf.Regions.RegionAdapterBase`1.Microsoft.Practices.Composite.Regions.IRegionAdapter.Initialize(Object regionTarget)
       bei Microsoft.Practices.Composite.Wpf.Regions.RegionManager.AttachNewRegion(Object regionTarget, String regionName)
       bei Microsoft.Practices.Composite.Wpf.Regions.RegionManager.OnSetRegionManagerCallback(DependencyObject element, DependencyPropertyChangedEventArgs args)
       bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

I know there are some other threads to this topic, but we didn't find any solution.

Can somebody help us please?

Thank you