Hello,
I'm having a problem binding properties in my axes. When I bind fields like so:
<igWebChart:Axis Name="PrimaryY" AxisType="PrimaryY" Minimum="{Binding PrimaryYAxisMinimum}" Maximum="{Binding PrimaryYAxisMaximum}" Unit="{Binding PrimaryYAxisUnit}" AutoRange="{Binding PrimaryYAxisAutoRange}">
Passing in the values 0, 100000, 25000 and false as appropriate, I see the following exception/stack trace:
{System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_Clear[T](PresentationFrameworkCollection`1 collection)
at System.Windows.PresentationFrameworkCollection`1.ClearImpl()
at System.Windows.PresentationFrameworkCollection`1.Clear()
at Infragistics.Silverlight.Chart.GridArea.Refresh()
at Infragistics.Silverlight.Chart.Scene.DrawScene()
at Infragistics.Silverlight.Chart.Scene.Update()
at Infragistics.Silverlight.Chart.Axis.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at Infragistics.Silverlight.Chart.Axis.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.RefreshBLOCKED EXPRESSION}
Have you seen this behavior before? I'm wondering if perhaps this problem occurs because the axis needs to have data bound to it before these values can be set, or some similar prerequisite. Thank you for your time.
This exception is still haunting me. If I explicitly specify values in the xaml the chart works fine, but if I try to bind to fields on my viewmodel I see the exception above. This only occurs with min, max and unit - I have used plenty of other bindings which work just fine.
Any help would be greatly appreciated. Thank you!
Hi Will,
I was able to reproduce the issue you are seeing and submitted a bug. For your reference, the bug number is 62500. I will contact our Developer Support Team to add you as a contact to the bug so you will be notified when it is fixed.
Thank you,
Marisa