locked
How to use ScrollBar in Metro?

    Question

  • I have a Image which height is 3000.

    And the Screen-Height is 768.

    I want to use ScrollBar to control the viewarea of this Image.

    How should I do, or there have some data helping to me.

    Tuesday, October 23, 2012 5:29 AM

Answers

  • I think is missing something related with

     <ScrollViewer HorizontalScrollMode="Enabled" HorizontalScrollBarVisibility="Visible">
    </ ScrollViewer >

    or

     <Image  Source="image.png" Stretch="None"
                        ScrollViewer.VerticalScrollBarVisibility="Visible" 
                        ScrollViewer.VerticalScrollMode="Enabled"
                        ScrollViewer.HorizontalScrollBarVisibility="Visible"
                        ScrollViewer.HorizontalScrollMode="Enabled"
                        />

    you need to see about the

    Stretch="None"

    Stretch property


    Sara Silva
    My Windows 8 Store Apps Samples
    Follow me in Twitter @saramgsilva

    My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24
    (If my reply answers your question, please propose it as an answer because it will help other users)

    • Proposed as answer by Jesse Jiang Wednesday, October 24, 2012 5:39 AM
    • Marked as answer by Jesse Jiang Monday, October 29, 2012 5:11 AM
    Tuesday, October 23, 2012 9:36 AM