This is a migrated thread and some comments may be shown as answers.

RadDocking w/ Windows7Theme

6 Answers 41 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Karin
Top achievements
Rank 2
Karin asked on 14 Jul 2011, 04:35 PM
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...

6 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 18 Jul 2011, 01:57 PM
Hi Karin,

We are aware of this issue. A fix will be provided in the next internal build.
Sorry for the caused inconvenience.

Greetings,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
hermann
Top achievements
Rank 1
answered on 03 Nov 2011, 03:31 AM
Hi,
just to let your test engineers know:
the same exception is thrown - without setting any theme - if you start your docking without a document host and all docking panes hidden.
If you then try to show  - let's say in mainwindow_loaded() - pane1, with
pane1.hidden = false
the InnerException comes up with this message.

Again, this is for WPF Q2 Nightly 2011.2.1010.40
all the best
Hermann
0
Konstantina
Telerik team
answered on 04 Nov 2011, 12:50 PM
Hi Hermann,

Could you please send us a sample project in which this issue can be observed? In that way we will be able to fix it in a timely manner.
Appreciate your help.

Greetings,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
hermann
Top achievements
Rank 1
answered on 04 Nov 2011, 10:21 PM
Here is a condensed project which shows the issue...
It is a zip file hidden as png - I hope this will do.
You might set an environment var named TELERIK_WPF_HOME to load the project

Kind regards,
Hermann
0
Konstantina
Telerik team
answered on 07 Nov 2011, 01:35 PM
Hello Hermann,

Sorry, but the attachment is missing. Could you please open a support ticket and attached it there.

Looking forward to your reply.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
hermann
Top achievements
Rank 1
answered on 07 Nov 2011, 04:40 PM
Hi, it's already being sent as support ticket 480178.
Tags
Docking
Asked by
Karin
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
hermann
Top achievements
Rank 1
Share this question
or