gpt4 book ai didi

c# - 如何滚动网格?

转载 作者:太空狗 更新时间:2023-10-29 21:22:49 25 4
gpt4 key购买 nike

我有一个 Grid,它的 Height 可以这样增长:

<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>


<Grid Name="Grid" Grid.Row="0" Grid.Column="0">

</Grid>

如何上下滚动它?

这是一个 Windows Phone 8 应用程序。

最佳答案

您可以将网格构造为:

 <Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="120" />
<RowDefinition Height="*" />
<RowDefinition Height="3*" />
<RowDefinition Height="5*" />
</Grid.RowDefinitions>
<Grid>
***content goes here****
</Grid>
<ScrollViewer VerticalScrollBarVisibility="Visible" Grid.Row="1">
*****Put scalable content here*******
</ScrollViewer>
<Grid Grid.Row="0">
***content goes here****
</Grid>
</Grid>

关于c# - 如何滚动网格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17946487/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com