Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: ZoomBox - Scrollbars

$
0
0

Hi,

Thank you as usual for your help.

Regarding the Zoombox I would like to make a for example a specific part of the view visible. ( I have a rectangle with the part of the view to be visible)

Here are the currently available functions.

If I use ZoomTo(region) it will change the scale. I want to make this region visible without changing the Scale. Is this possible?

(if you can please explain to me the functionality of these methods)

CurrentZoomBox.Zoom (percentage, relativeTo);

CurrentZoomBox.ZoomTo(scale);

CurrentZoomBox.ZoomTo(scale, relativeTo);

CurrentZoomBox.ZoomTo(position);

CurrentZoomBox.ZoomTo(region);

How to know the currently visible part of the view (its dimensions)?

Basically I am trying to show a shape in the view. I want to know if the shape is already visible or not so no need to scroll if it is already displayed

Clicking on the scroll bar scrolls with an increment the same as when you click on the scrollbar arrow. (As shown below in the snapshot). When I click on the scrollbar itself should scroll like a page down or page up.


Thanks a lot for your help

Mary


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>