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
620
Issue with Chart
posted

I added a chart to a report and I know get the following error. The issue seems to be having the Reporting Controls and Standard Silverlight controls in the same project.

[A]Infragistics.BrushCollection cannot be cast to [B]Infragistics.BrushCollection. Type A originates from 'InfragisticsSL5.DataVisualization.v12.1, Version=12.1.20121.2068, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' in a byte array. Type B originates from 'InfragisticsSL5.Reports.Controls.DataVisualization.v12.1, Version=12.1.20121.2002, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' in the context 'Default' in a byte array.

Stack Trace

   at Infragistics.Controls.Charts.XamDataChart.get_MarkerBrushes()    at Infragistics.Controls.Charts.XamDataChart.GetMarkerBrushByIndex(Int32 index)    at Infragistics.Controls.Charts.MarkerSeries.UpdateIndexedProperties()    at Infragistics.Controls.Charts.AnchoredCategorySeries.UpdateIndexedProperties()    at Infragistics.Controls.Charts.Series.DoUpdateIndexedProperties()    at Infragistics.Controls.Charts.Series.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.MarkerSeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.CategorySeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.AnchoredCategorySeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.HorizontalAnchoredCategorySeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.Series.<.ctor>b__2(Object o, PropertyUpdatedEventArgs e)    at Infragistics.Controls.Charts.PropertyUpdatedEventHandler.Invoke(Object sender, PropertyUpdatedEventArgs e)    at Infragistics.Controls.SeriesViewer.RaisePropertyChanged(String name, Object oldValue, Object newValue)    at Infragistics.Controls.Charts.XamDataChart.<.cctor>b__5b(DependencyObject sender, 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.InvalidateProperty(DependencyProperty property)    at MS.Internal.FrameworkCallbacks.InvalidateProperty(IntPtr nativeTarget, UInt32 propertyId)

  • 35319
    posted

    Hello,

     

    I am checking if this is still an issue for you.

     

    If you require any further assistance please do not hesitate to ask.

  • 35319
    posted

    Hello,

     

    Thank you for your post. I have been looking into it, but it seems like I am missing something, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.

     

    Looking forward for your reply.