How can I get ScrollViewer's current position?


  • <ScrollViewer Background="Gray">
        <Image x:Name="Image_Test" 
         Source="{Binding Content}"
         Width="{Binding ContentWidth}"
         Height="{Binding ContentHeight}" />

    My Image was drawed according IVirtualSurfaceImageSource, and Image_Test's width(600) & height(3600) is the same as IVirtualSurfaceImageSource.

    I want to draw myself content according to current ScrollViewer position. But I don't know how to get the ScrollViewer position.

    Or I don't need to consider the position of ScrollViewer while drawing content to Image.

    Tuesday, October 9, 2012 12:26 PM


All replies