Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
760
Axis Binding Problem
posted

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.

Parents Reply Children
No Data