Silverlight 4.0 如何在silverlight for windows phone 7中创建静态和滚动元素?
如何在silverlight for windows phone 7中创建静态和滚动元素 我使用下面的代码,但是静态组件有一些问题,即静态组件也会滚动 我的代码:Silverlight 4.0 如何在silverlight for windows phone 7中创建静态和滚动元素?,silverlight-4.0,windows-phone-7.1,windows-phone-7,Silverlight 4.0,Windows Phone 7.1,Windows Phone 7,如何在silverlight for windows phone 7中创建静态和滚动元素 我使用下面的代码,但是静态组件有一些问题,即静态组件也会滚动 我的代码: <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.RowDefinitions> <RowDefinition Height="100"/> <RowDefinit
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="700"/>
</Grid.RowDefinitions>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1">
<Image Source="top_1.png"></Image>
</Grid>
<Grid x:Name="ContentPane2" Grid.Row="2">
<ScrollViewer>
<Image Source="down_1.png"></Image>
</ScrollViewer>
</Grid>
</Grid>
Grid.Row属性基于0。您需要将xaml更改为以下内容:
<Grid x:Name="ContentPanel" Grid.Row="0">
<Image Source="top_1.png"></Image>
</Grid>
<Grid x:Name="ContentPane2" Grid.Row="1">
<ScrollViewer>
<Image Source="down_1.png"></Image>
</ScrollViewer>
</Grid>