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
925
XamDataChart zoombar styling
posted

Hi,

Could you please tell me how to style the built-in zoombar that comes with the xamDataChart? I have created a custom style that gets applied to XamZoombar controls used outside of the chart and I want this applied to the built-in controls also. Setting all the available styling properties for vertical/horizontal properties i.e. HorizontalScaleLeftStyle, HorizontalScrollLeftStyle etc. seems to set the styles to a degree, but there is clearly some additional styles/templates at work:

Style applied to XamZoombar outside of chart:

Style applied to built-in chart zoombar:

Code to set styles:

chart.HorizontalZoombar.Style = Application.Current.Resources["XamZoombarStyle"as Style;
            chart.HorizontalZoombar.HorizontalThumbStyle = Application.Current.Resources["HorizontalThumbStyle"as Style;
            chart.HorizontalZoombar.HorizontalScaleLeftStyle = Application.Current.Resources["HorizontalScaleLeftStyle"as Style;
            chart.HorizontalZoombar.HorizontalScaleRightStyle = Application.Current.Resources["HorizontalScaleRightStyle"as Style;
            chart.HorizontalZoombar.HorizontalScrollLeftStyle = Application.Current.Resources["HorizontalScrollLeftStyle"as Style;
            chart.HorizontalZoombar.HorizontalScrollRightStyle = Application.Current.Resources["HorizontalScrollRightStyle"as Style;