RadPane seems to have picked up some issues in SL5 RC.
Somewhere in between the process of upgrading Telerik from 2011.1.419.1040 to 2011.2.712.1040 and SL4 -> SL5b -> SL5 RC our docking enhancements broke. I have narrowed the problem down to where I set RadPane's Content property in code behind. I get a "Value does not fall within the expected range" Exception deep inside MS.Internal.XcpImports.CheckHResult(UInt32 hr) where it is still warm.
What to do?
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
//Value does not fall within the expected range.
//at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
//at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s)
//at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
//at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
//at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
//at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
//at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
//at System.Windows.Controls.ContentControl.set_Content(Object value)
//at SilverlightApplication1.MainPage.Button_Click(Object sender, RoutedEventArgs e)
//at System.Windows.Controls.Primitives.ButtonBase.OnClick()
//at System.Windows.Controls.Button.OnClick()
//at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
//at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
//at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
var v = new RadPane { Content = "" };
}
}