RadDocking w/ Windows7Theme

7 posts, 0 answers
  1. Karin
    Karin avatar
    8 posts
    Member since:
    Aug 2008

    Posted 14 Jul 2011 Link to this post

    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...
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. hermann
    hermann avatar
    43 posts
    Member since:
    Jun 2011

    Posted 02 Nov 2011 Link to this post

    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
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 04 Nov 2011 Link to this post

    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 >>
  6. hermann
    hermann avatar
    43 posts
    Member since:
    Jun 2011

    Posted 04 Nov 2011 Link to this post

    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
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Nov 2011 Link to this post

    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 >>
  8. hermann
    hermann avatar
    43 posts
    Member since:
    Jun 2011

    Posted 07 Nov 2011 Link to this post

    Hi, it's already being sent as support ticket 480178.
Back to Top
DevCraft banner