ContentControls Content set before Parent set
-
Tuesday, November 15, 2011 3:52 AM
I try to programmatically set Content of Content control before it is placed on its parent, I get an Exception with that stacktrace:
w MS.Internal.XcpImports.CheckHResult(UInt32 hr)
w MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
w MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
w System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
w System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
w System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
w System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
w System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
w System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
w System.Windows.Controls.ContentControl.set_Content(Object value).... My code stack trace here
My code works well on Silverligth 5 beta.
All Replies
-
Wednesday, November 16, 2011 10:18 PM
Hi szogun87,
Thanks for your feedback.
Could you please post related code here, then we can test it on our side and try to find the cause of the problem.
Best Regards,
-
Friday, November 18, 2011 4:18 AM
I tried to reproduce it, and I found out that it is Telerik RadTabItem Bug (which Inherits from ContentControl).
-
Friday, November 18, 2011 4:25 AM
Hi szogun87,
Thanks for your reply.
So I believe you will get better answer of this question from Telerik Forum at
http://www.telerik.com/community/forums/silverlight.aspx
Best Regards,

