Hi,
We are using XamDataChart with programmatically generated series, we face following issues how can we fix that issues?
You're welcome. Glad I could help.
Thanks Rob your provided solution solved my problem.
Hi elinder,
Here's another updated version of your sample. I included the brushes and styles for the XamZoombar control and I already changed some of them to create a darker appearance. You can see what the original brushes were as I have commented them out and replaced them with difference colors.
As for the MVVM stuff, as long as the view code (ie. *.xaml / *.xaml.cs) does not touch anything in your view model or data, it is following the separation of concerns setup by MVVM. If you don't want any code at all in the code behind file then I recommend that you create a behavior to encapsulate the functionality of the zoombar collapsing.
http://www.silverlightshow.net/items/Behaviors-and-Triggers-in-Silverlight-3.aspx
Hi Rob,
Your provided solution is great and its solved my problem, but we use MVVM and Zoombar visible/ collapsed code is written in xaml.cs file, Is it a good practice to write code in xaml.cs ? In zoombar control there must be an 'Auto' option like in scrollviewer cotrol this option automatically handled visible/ collapsed?
What's the updates regarding the color change of the zoombar?
I have attached a modified version of your sample. In the sample, I have changed the foreground color of the Legend text to white. The default LegendItemTemplate was still being used and inside this template it was setting the color to what you saw before. I provided a new LegendItemTemplate to the series using the new color and it now works.
I also made it so the zoombars only show up when you zoom in. When you fully zoom out, the are collapsed.
I haven't had a chance to change the color on the zoombar yet. I'll update you again once I've investigated that.