MS.Internal.WrappedException: Element is already the child of another element.

5 posts, 0 answers
  1. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 04 Aug 2009 Link to this post


    I get the following exception when I use the toolbar and resize, I suppose it happens when builing the overflow list.

    This didn't happen in prior versions, I am now using:

    Telerik.Windows.Controls: v2009.2.724.1020
    Telerik.Windows.Controls.Navigation v2009.2.724.1020


    {MS.Internal.WrappedException: Element isalready the child of another element. ---> System.InvalidOperationException:Element is already the child of another element.
    atMS.Internal.XcpImports.CheckHResult(UInt32 hr)
    atMS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1collection, CValue value)
    atMS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1collection, DependencyObject value)
    atSystem.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
    at System.Windows.PresentationFrameworkCollection`1.Add(T value)
    atTelerik.Windows.Controls.RadToolBar.InsertInPanel(Panel panel, UIElementcontainer, Int32 position)
    atTelerik.Windows.Controls.RadToolBar.OnItemsCollectionChanged(Panel panel,NotifyCollectionChangedEventArgs e)
    atTelerik.Windows.Controls.RadToolBar.OnOverflowItemsCollectionChanged(Objectsender, NotifyCollectionChangedEventArgs e)
    atSystem.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, Titem)
    at System.Collections.ObjectModel.Collection`1.Add(T item)
    at Telerik.Windows.Controls.RadToolBar.InsertOverflowItem(Objectitem, Int32 position)
    atTelerik.Windows.Controls.RadToolBar.MeasureOverride(Size availableSize)
    atSystem.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, SingleinWidth, Single inHeight, Single& outWidth, Single& outHeight)
    ---End of inner exception stack trace ---
    atMS.Internal.XcpImports.CheckHResult(UInt32 hr)}
  2. Sean
    Sean avatar
    2 posts
    Member since:
    Aug 2006

    Posted 04 Aug 2009 Link to this post

    Note: we needed a Dev build in order to fix the "Dragging windows caused uncontrolled movement" issue fixed in the 7/20 build.  Unfortunately that version is not posted for download. 

    Meanwhile, the notes indicate that 7/24 has far more changes which we don't necessarily need.  If this regression only affects 7/24 then we'd be happy to use 7/20 instead.
  3. Ivan
    Ivan avatar
    519 posts

    Posted 04 Aug 2009 Link to this post

    Hello Sean,

    Thank you for reporting the issue.
    We confirm the issue with the SL3 07-24 release.

    About the download of the older internal version.
    Please open a Support Ticket in order to attach the Developers version of our assemblies. In a Forum Ticket we can attach only Trial versions.

    PS: regarding the bug report your Telerik points are updated.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Pedro
    Pedro avatar
    22 posts
    Member since:
    Apr 2008

    Posted 21 Sep 2009 Link to this post

    Does the fix for this problem its available for download?

  5. Ivan
    Ivan avatar
    519 posts

    Posted 24 Sep 2009 Link to this post

    Hello Pedro,

    With the last 8.12 release everything is OK. Attached you can find an example application to test the case.

    Please give it a try and let us know if you have more questions.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top