Using a scrollbar ?!

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

_Noctis_ wrote at 2013-11-01 10:11:

Completely unrelated maybe, but I've seen that you can use a scrollbar on different charting tools, and then just drag it right/left (or up/down).

Now, in OxyPlot, I can drag while holding the right mouse button, but I was wondering if it's possible to do the same with a scrollbar (the benefit is that the other Axis will stay fixed ... I guess we can achieve the same using : "IsZoomEnabled = false, IsPanEnabled = false", but i believe that having a scrollbar will be more intuitive, and you can start with a zoomed in and it'll be clear that there are move to the sides ...

objo wrote at 2013-11-06 23:18:

It should be possible to overlay the scrollbars, and adjust their position and size when the plot is changing!
See the OverlayDemo in the WpfExamples. It is overlaying a Rectangle, but it could also be a scroll bar aligned at one of the axes!
This could be a nice example to add!

tibel wrote at 2014-03-27 21:42:

Such a sample would be great.

Can this be done with an Annotaton?