我希望能够使用ScrollViewer一次滚动我的内容,所以我有一个带有两个控件的Grid;一个Button和一个包含WebView的网格。
当我滚动浏览WebView时,标题是否也被隐藏(向上滚动)?
我的代码在下面
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" VerticalScrollMode="Auto" IsScrollInertiaEnabled="True" x:Name="ContentScroll">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Button Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Left" Style="{StaticResource CustomButton}" Foreground="{Binding ElementName=Page, Path=Theme.PrimaryForeground, FallbackValue='#000000'}">
<Button.Content>
<TextBlock Margin="10,5,3,0" TextWrapping="WrapWholeWords" Text="{Binding ElementName=Page, Path=entry.Title}" FontSize="{ThemeResource TextStyleLargeFontSize}" FontWeight="Normal" x:Name="tittle" />
</Button.Content>
</Button>
<Grid Margin="0" Grid.Row="1">
<WebView x:Name="content" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
</Grid>
</Grid>
</ScrollViewer>
任何人都有任何提示吗?