disable zooming

Oystein Bjorke 10 jaar geleden 0
This discussion was imported from CodePlex

steunissen wrote at 2011-07-19 10:49:

First I have to say I absolutely love this great tool !

And I have a question ;-)

When I am on a chart and I want to scroll down (the chart is in a listview) the chart zooms as well. But I want the chart to be fixed, thus disabling the zoom functionality... Can I do this ?

 

Sander.


objo wrote at 2011-07-19 13:43:

hi Sander, you can set IsZoomEnabled = false to each of your axes, I think this is what you need!


steunissen wrote at 2011-07-19 17:35:

objo wrote:

hi Sander, you can set IsZoomEnabled = false to each of your axes, I think this is what you need!

Ah, I found it...

I was defining my axes in wpf, but there is no IsZoomEnabled property available.

Now I define my axes in code and IsZoomEnabled is available.

The OxyPlot and OxyPlot.WPF namespaces have more or less different objects with identical names... I found that a bit confusing...

 


objo wrote at 2011-07-20 21:50:

Right, all properties are not yet available in the WPF/SL classes, but this is planned (I hope to be able to share the code on both platforms). I understand it can be a bit confusing with identical names and the two different ways to define the plots, but there are advantages with both methods, so I think it should be kept that way.