我在滚动查看器中有一个网格。我在页面的OnNavigateTo()中将RowDefinitions和内容添加到网格中。当需要滚动时,会出现垂直导轨但底部滚动箭头丢失且不会滚动。我认为它与网格和滚动查看器的高度有关,但我对如何解决它感到茫然。
<ScrollViewer x:Name="listScrollView" HorizontalScrollBarVisibility="Disabled" VerticalScrollMode="Enabled" VerticalScrollBarVisibility="Visible" Height="733" Margin="0,0,0,0" Width="1010" Grid.RowSpan="2" ZoomMode="Disabled">
<Grid x:Name="listPanel" HorizontalAlignment="Left" Height="Auto" VerticalAlignment="Top" Width="1010" Grid.RowSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
</Grid>
</ScrollViewer>