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

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

4 Answers 194 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Vic
Top achievements
Rank 2
Vic asked on 04 Aug 2009, 02:54 PM
Hello,

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

Thanks,
Vic


{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.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObjectvalue)
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.OnCollectionChanged(NotifyCollectionChangedEventArgse)
atSystem.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, Titem)
at System.Collections.ObjectModel.Collection`1.Add(T item)
atSystem.Collections.ObjectModel.Collection`1.System.Collections.IList.Add(Objectvalue)
at Telerik.Windows.Controls.RadToolBar.InsertOverflowItem(Objectitem, Int32 position)
atTelerik.Windows.Controls.RadToolBar.TryMoveStripItemToOverflow(Int32index)
atTelerik.Windows.Controls.RadToolBar.TryMoveStripItemToOverflow()
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)}
 

4 Answers, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 1
answered on 04 Aug 2009, 03:51 PM
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.
0
Ivan
Telerik team
answered on 04 Aug 2009, 06:12 PM
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.

Regards,
Ivan
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.
0
Pedro
Top achievements
Rank 1
answered on 21 Sep 2009, 02:17 PM
Does the fix for this problem its available for download?

Pedro.
0
Ivan
Telerik team
answered on 24 Sep 2009, 01:07 PM
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.

Greetings,
Ivan
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.
Tags
ToolBar
Asked by
Vic
Top achievements
Rank 2
Answers by
Sean
Top achievements
Rank 1
Ivan
Telerik team
Pedro
Top achievements
Rank 1
Share this question
or