Friday, 16 August 2013

How to create scrollable canvas in WinRT?

How to create scrollable canvas in WinRT?

I tried this, but I can't scroll the canvas. I tried to handle mousewheel
change event of other controls but scrolling is not working. Anybody has
idea what I am doing wrong ?
<Viewbox Grid.Column="1" Grid.Row="1" Stretch="Fill" StretchDirection="Both">
<ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.HorizontalScrollMode="Enabled"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
Margin="20,0,20,0">
<Canvas Background="White" />
</ScrollViewer>
</Viewbox>

No comments:

Post a Comment