This question is locked. New answers and comments are not allowed.
Hello,
In a UserControl, setting up the following causes the RadDiagram to crash when the Connectors are clicked when running
In the code behind
In a UserControl, setting up the following causes the RadDiagram to crash when the Connectors are clicked when running
<Grid x:Name="LayoutRoot" Background="White"> <telerik:RadDiagram > <telerik:RadDiagramShape /> </telerik:RadDiagram></Grid>In the code behind
namespaceSilverlightApplication1.Classes{publicpartialclassTest : UserControl{publicTest(){InitializeComponent();this.LayoutRoot.DataContext =this;//Comment out the line above to resolve the issue}}}
Please could you let me know if there is something incorrect, with the changing of the datacontext,
or if there is something that I should be doing instead?
I am using version 2012.1.507.1050 of the assemblies.
When the application is running, click any of the connector nodes.
The application crashes with :
Exception has been thrown by the target of an invocation.
{System.ArgumentException: Value does not fall within the expected range.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
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.RefreshExpression(DependencyProperty dp)
at System.Windows.Data.BindingExpression.SendDataToTarget()
at System.Windows.Data.BindingExpression.SourceAcquired()
at System.Windows.Data.Debugging.BindingBreakPoint.<>c__DisplayClass4.<BreakOnSharedType>b__3()}
Many thanks.