<phone:PivotItem Header="second">
<StackPanel HorizontalAlignment="Left" Height="595" Margin="10,10,0,0" VerticalAlignment="Top" Width="436">
<Button Content="Button" />
<Button Content="Button" >
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
</StackPanel>
<!--Double line list no text wrapping-->
</phone:PivotItem>
答案 0 :(得分:1)
这可以启用您的布局滚动。试试这个 -
<phone:PivotItem Header="second">
<ScrollViewer Height="500">
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
<Button Content="Button" />
<Button Content="Button" >
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
</StackPanel>
</ScrollViewer>
</phone:PivotItem>
答案 1 :(得分:1)
尝试ScrollViewer课程
<ScrollViewer>
<StackPanel HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="436">
<Button Content="Button" />
<Button Content="Button" />
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
<Button Content="Button"/>
</StackPanel>
</ScrollViewer>
答案 2 :(得分:0)
是的,ScrollViewer控件可用于滚动比控件可用的可见区域更长的内容...
<ScrollViewer>
... content goes here ...
</ScrollViewer>