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?
Hello Joe,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
I have been looking into your sample, but I was't abel to run it since there are refferences to assemblies I do not have. Also there is a source control, which I wasn't able to load, too. Could you please try to isolate the sample, so it reproduces your issue, and send it back to me and I will be glad to investigaet it further for you.
Looking forward for your reply.
Stephan,
I figured out what I was doing wrong, the zip file was too large. Like I was saying in my previous post, the code to look at is in ucHistogramChart, ucXdcTrendChart and ChartBaseV. the two chart classes are derived from the ChartBaseV class. I set this up such that I would pass a reference to the chart into the base class and then have a generic set of code for handling my charts. the plan is to add 3 to 4 more different types of charts.
Joe
Stefan,
I have zipped up my project for you the files to look at are the ucHistogramChart, ucXdcTrendChart and the ChartBaseV. However, I keep getting an Internal Server Error 500, the resource you are looking for cannot be found. Is there a size limitation for uploads?
Thank you for your post. I have been looking into it, but since this is not a known issue, I am not able to conclude what can cause this behavior, so could you please send me an isolated sample project, where the issue is reproduced, so I can investigate it further for you.