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
95
Strange vertical zoombar behaviour
posted

Hi,

We have a problem with the XamDataChart. Using bindings we want to show or hide (VerticalZoombarVisibility="Visible"/"Collapsed") a vertical zoom bar. As long as the vertical zoom bar is "collapsed", the vertical zooming is disabled as well (VerticalZoomable="false"). The vertical zoom enable/disable and visibility is controlled using a property that is located in our view model class.  

Horizontal zoom is enabled all the time.

Additionally, I want that the vertical zoom is set to 100% every time the vertical zooming becomes disabled. (WindowRect = (WindowRect.x, 0, WindowRect.Width,1))

The solution is working well, except when I use the horizontal zooming feature while the vertical zooming is disabled (no vertical zoom bar visible; vertical zooming disabled).

To see the problem, do following (perhaps more than once):

1. enable vertical zooming. The vertical zoom bar appears. The vertical zoom is set to 100% and the length of the vertical zoom bar slider fills the complete length of the vertical zoom bar.

2. disable the vertical zooming. The vertical zoom bar disappears.

3. Make horizontal zoom.

4. reenable vertical zooming again

Now the vertical zoom is at 100% in the plot area but the vertical zoom bar slider fills only a small area at the top of the vertical zoom bar. It should be filling the whole 100% area.

Is there a solution to have a correct vertical zoom bar slider in case of zooming while the vertical zoom bar is hidden??

We are using WPF 2012.2 version.

Kind regards,
Alex

Parents Reply Children
No Data