2013-03-06 73 views
2

由於某種原因,ScrollViewer內部的我的StackPanel不滾動。Windows Phone Scroll Viewer不滾動

代碼:

<ScrollViewer Height="478" Name="scrollerButtons" Width="Auto" Canvas.Left="668" Canvas.Top="2" VerticalAlignment="Bottom" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" HorizontalAlignment="Left"> 
     <StackPanel Name="stackPanelButtons" Orientation="Vertical" Canvas.Left="162" Canvas.Top="43" VerticalAlignment="Center" HorizontalAlignment="Center" Width="Auto"> 
      <Image Height="60" Name="imgA" Source="Images/a.png" Stretch="Fill" Width="60" Tap="imgA_Tap"></Image> 
      <Image Height="60" Name="imgB" Source="Images/b.png" Stretch="Fill" Width="60" Tap="imgB_Tap"></Image> 
     </StackPanel> 
</ScrollViewer> 
+1

您已經在ScrollViewer中將垂直滾動設置爲禁用了嗎? – Patrick 2013-03-06 20:04:11

+0

噢,我的天 - 我應該開槍自殺,兩次......非常感謝。 – Subby 2013-03-06 20:07:57

+0

添加了答案,但如果需要,可以刪除問題。 – Patrick 2013-03-06 20:16:06

回答

2

變化ScrollViewer.VerticalScrollBarVisibility="Disabled"從禁用爲自動。

+0

感謝1000 Patrick! – Subby 2013-03-06 20:21:31

相關問題