title: ScrollViewer: Zoom to Center of Current page via button
body: <p>So I have a program. In this program there is a PDF Reader. For this PDFReader there are Zoom in/out buttons. My problem is the current behaviour of the zoom from the zoom buttons.</p>
  
  <p>For example: When zooming in it zooms towards the top. When zooming out it zooms towards the buttom. (It can even jump pages with it. Going to the top side of page 2 and zoom out makes a jump to the bottom of page 2. Zooming out again jumps to the bottom of page 3. Zooming out again jumpst to page 5/6 (technically bottom of page 5))</p>
  
  <p>I honestly dont know if it is because of the ScrollViewer or because of something else. But I assume it is because of the ScrollViewer.</p>
  
  <p>Does anyone know if I can set the zoom to the center of a current page? Maybe it has something to do with the VerticalOffset (which cant be changed though) or something?</p>