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
125
Styling the unselected region while zooming
posted

Hi,

We have a XamDataChart control showing a simple line graph, with drag to zoom enabled.  When highlighting the area to zoom, the unselected region is overlayed with a slightly opaque gradient to make it appear lighter than the selected region.  This effect works well if the plot area has a dark background, but with a light background then this gradient is almost invisible.  Is it possible to change the brush used for this unselected region?

Many thanks,

Graham.

Parents
  • 34510
    Verified Answer
    Offline posted

    Hi Graham,

    You can set the PreviewPathStyle on the XamDataChart.  This should let you change the color of the unselected region of that zoom preview element.  The TargetType for the style needs to be a Path.  In your style just add a Setter to change the Fill property.

Reply Children
No Data