Hello!
I just upgraded my application to the Q2 release of telerik WPF controls and found that RadDocking throws an unhandled exception when dropping panes into a pane that is not the center (e.g. not into the existing radpanegroup). After some debugging, I figured this only happens with the Windows7Theme set. I reproduced the same problem in a simple WPF application, which I can supply if required (Basically a barebones wpf application with code from the docking example and the Windows7Theme set in the App constructor).
System.InvalidOperationException was unhandled
Message=Element already has a logical parent. It must be detached from the old parent before it is attached to a new one.
Source=PresentationFramework
StackTrace:
at MS.Internal.Controls.InnerItemCollectionView.AssertPristineModelChild(Object item)
at MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)
at System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
at Telerik.Windows.Controls.RadSplitContainer.AddItem(ISplitItem item, DockPosition dockPosition, ISplitItem relativeTo) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadSplitContainer.cs:line 373
at Telerik.Windows.Controls.RadPaneGroup.AddItem(ISplitItem item, DockPosition dockPosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 382
at Telerik.Windows.Controls.RadDocking.OnDropContainer(RadSplitContainer container, Point globalMousePosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 338
at Telerik.Windows.Controls.RadDocking.DropWindow(ToolWindow toolWindow, Point globalMousePosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 269
Kind Regards,
Karin Huber
Edit: Sorry, I have mistakenly posted this to the Silverlight RadDocking instead of the WPF RadDocking forum. I have not tried if the same thing happens for silverlight...
I just upgraded my application to the Q2 release of telerik WPF controls and found that RadDocking throws an unhandled exception when dropping panes into a pane that is not the center (e.g. not into the existing radpanegroup). After some debugging, I figured this only happens with the Windows7Theme set. I reproduced the same problem in a simple WPF application, which I can supply if required (Basically a barebones wpf application with code from the docking example and the Windows7Theme set in the App constructor).
System.InvalidOperationException was unhandled
Message=Element already has a logical parent. It must be detached from the old parent before it is attached to a new one.
Source=PresentationFramework
StackTrace:
at MS.Internal.Controls.InnerItemCollectionView.AssertPristineModelChild(Object item)
at MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)
at System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
at Telerik.Windows.Controls.RadSplitContainer.AddItem(ISplitItem item, DockPosition dockPosition, ISplitItem relativeTo) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadSplitContainer.cs:line 373
at Telerik.Windows.Controls.RadPaneGroup.AddItem(ISplitItem item, DockPosition dockPosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 382
at Telerik.Windows.Controls.RadDocking.OnDropContainer(RadSplitContainer container, Point globalMousePosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 338
at Telerik.Windows.Controls.RadDocking.DropWindow(ToolWindow toolWindow, Point globalMousePosition) in c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 269
Kind Regards,
Karin Huber
Edit: Sorry, I have mistakenly posted this to the Silverlight RadDocking instead of the WPF RadDocking forum. I have not tried if the same thing happens for silverlight...