I manged to get and set scrollerOffest as :
double horizonatalOffest = sv.HorizontalOffset;
Debug.WriteLine("horizonlat offset: " + horizonatalOffest.ToString());
sv.ScrollToHorizontalOffset(2000);
The problem is how to get the max offset. Say I have the scroller 0 to 50000. So how can I get max offset? Scrollview.HorizontalOffset returns current offset position? Note that My scroller grows/shrinks during run time.
The maximum offset for the
ScrollViewerwill depend on its content. Obtain the child of theScrollViewer, and obtain its height via itsActualHeightproperty. You then subtract theScrollViewerActualHeightproperty value to give you the maximum offset.