VansFannel
VansFannel

Reputation: 45911

Scrolling vertically grid content

I'm developing a Windows Phone application.

I have a phone page with a big textblock and a picture inside on a stackpanel. Because the textblock is big the picture isn't visible. I set VerticalScrollBarVisibility="Visible" on stackpanel but I can't see the picture.

How can I use a scrollbar to see the content bellow the textblock?

Upvotes: 3

Views: 3189

Answers (1)

Stephan
Stephan

Reputation: 5488

Wrap your content in a ScrollViewer :

<ScrollViewer VerticalScrollbarVisibility="Visible" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <!-- Your content here -->
</ScrollViewer>

Upvotes: 5

Related Questions