Gets or sets the scroll offset value.
The current scroll offset value. The default value is 0,0.
Changing the value of this property will fire the PropertyChanged, ScrollChanged and TransformChanged events.
When the value of ScrollMode is ImageViewerScrollMode.Auto, then the value of ScrollOffset contains the current scrollbars offset. When the user clicks and drags on the scrollbars, the value of ScrollOffset (and the scrollbars thumbs) changes accordingly. The minimum value allowed is 0,0 (top-left) and the maximum value allowed is stored in ScrollRange (setting ScrollOffset to ScrollRange will cause the viewer to scroll the image to the bottom-right corner. You can manually pan the image by setting a value in ScrollOffset or calling ScrollBy.
When the value of ScrollMode is ImageViewerScrollMode.Hidden, then the value of ScrollOffset contains the virtual scroll (pan) offset, you can pan the image by changing the value of ScrollOffset or calling ScrollBy. If the value of RestrictHiddenScrollMode is true, then the minimum and maximum scroll values are the same as the case above. If the value of RestrictHiddenScrollMode is false, then there is no minimum and maximum scroll ranges and any value is allowed for ScrollOffset. ScrollRange will still be the value to use if you want to either scroll the image to top-left or right-bottom.
When the value of ScrollMode is ImageViewerScrollMode.Disabled changing the value of ScrollOffset or calling ScrollBy will be ignored.
Products |
Support |
Feedback: ScrollOffset Property - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|