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
375
Silverlight xamDataChart Brush Colors
posted

Here's the situation, I have create 2 different user controls, both have a XamDataChart control. The user controls will be used as content for panes in my XamDockManager and will display 2 different types of charts, Trend and Histogram. What I want to be able to do is modify the brush collection of the individual XamDataChart controls so that I can set the colors of the series to match. Meaning on the Trend chart the data for group 1 should be the same color as the Histogram chart data for group 1. What I am experiencing is that I set the list of brushes in 1 XamDataChart to say Red,Red,Orange,Yellow,Green, everything displays as expected. Then I set the brushes in the second XamDataChart to Red,Orange,Yellow,Green,Blue and display the chart as expected. This is were things break down, when I look at the reference to the first XamDataChart object I see that the brushes are now the same as the brushes for the 2nd XamDataChart. Why? Each user control is in its own XAML and C# files, they have different names and I have a private data member I use to access each chart. Any ideas?

Parents Reply Children
No Data