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
2035
Changing Brushes property on the fly does not work
posted

I have a StackedBarSeries XamDataChart where I update the data every 30 seconds.  The data update via bindings does properly get reflected in the chart.  However, when I update the Brushes property of the XamDataChart via bindings, the colors used in the chart are not updated.  If I force a redraw by resizing the screen, then the colors are updated.  What can I do to force the colors to be updated on the screen when the Brushes property is updated?  Is this a bug?

Regards,

Arthur

Parents
No Data
Reply
  • 28496
    Verified Answer
    Offline posted
    As long as the property you're binding to implements INotifyPropertyChanged or is a Dependency Property, it should work. I tested this out using the attached sample application, and it seemed to be working okay. Does this work on your end? Is this basically the same approach you were taking to change the brushes?
    WpfApplication9.zip
Children