Hi,
We are using XamDataChart with programmatically generated series, we face following issues how can we fix that issues?
Hi elinder,
1.) Do you mean that your requirement is to only have the zoombars visible when needed? Because by default they are always shown as long as the Visibility property is set to Visible. The way you worded this makes it seem like you want the zoombars to be visible at all times and right now they aren't.
2.) This is a pretty odd issue. I'm investigating to see why this is happening.
3.) You'll have to style the XamZoombar for this. You can find the default styles for it here: C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles\DataVisualization\Classic.xaml. Use the styles as a base to alter the look.
4.) The scatter point size is determined by the marker template used for the series. If you want to make it bigger you'll have to provide your own MarkerTemplate that has a bigger sized shape inside. http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=xamDataChart_Customizing_Markers.html
Hi Rob,
Our requirement is to show zoombars visible when needed, currently i was set Visibility property to Visible because there is no 'Auto' property available and it is showing always, but we need to show when user zoom the chart.
I was applied XamZoombar style from the location that you mentioned but its not worked, can you modify the attached sample with black style like i was shown black XamZoombar in red encircled in sample project folder ?
Any update ?
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.
You're welcome. Glad I could help.
Thanks Rob your provided solution solved my problem.
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
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?