Windows phone 7 WP7 ListPicker滚动问题
我创建了以下内容:Windows phone 7 WP7 ListPicker滚动问题,windows-phone-7,Windows Phone 7,我创建了以下内容:
第三个lisppicker ListPicker3有5项,我只能看到前两项,其余3项不可见,因为它们位于页面下方。问题是我无法向下滚动查看它们
有人能告诉我是否有办法向下滚动页面以查看扩展的ListPicker3的值,或者建议我解决此问题的方法
谢谢用
您可以在此处阅读更多信息:您可以将ListPicker配置为以“完整”模式打开-无论其中有多少项。通常,它们会根据包含的项目数量以不同的模式打开 如果设置ItemCountThreshold=“0”和ListPickerMode=“Full”,则它们应始终以完整模式打开(如弹出/新建窗口) 您可以在此处阅读更多信息:
- 在滚动查看器中包装listpicker李>
- 为列表选择器创建大小更改事件
- 使用上面的代码重置垂直偏移
- 在滚动查看器中包装listpicker李>
- 为列表选择器创建大小更改事件
- 使用上面的代码重置垂直偏移
<!--Pivot Control-->
< controls:Pivot Title="name"
<!--Pivot item one-->
< controls:PivotItem Header="h1">
<Grid>
<Image Height="140" HorizontalAlignment="Left" Margin="24,21,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="200" />
<TextBlock Height="146" HorizontalAlignment="Left" Margin="246,21,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" Width="194" />
<StackPanel Margin="10,200,0,0">
<toolkit:ListPicker Header="header1" HorizontalAlignment="Left" Name="ListPicker1" VerticalAlignment="Top" Width="429" />
<toolkit:ListPicker Header="header2" HorizontalAlignment="Left" Name="ListPicker2" VerticalAlignment="Top" Width="429" CacheMode="BitmapCache" />
<toolkit:ListPicker Header="header3" HorizontalAlignment="Left" Name="ListPicker3" VerticalAlignment="Top" Width="429" CacheMode="BitmapCache" />
</StackPanel>
<Grid>
<controls:PivotItem>
<!--Pivot item two-->
<controls:PivotItem Header="h2">
<Grid/>
<controls:PivotItem>
<!--Pivot item three-->
<controls:PivotItem Header="h3">
< Grid/>
</controls:PivotItem>
</controls:Pivot>
</Grid>
private void ListPicker_SizeChanged(object sender, SizeChangedEventArgs e)
{
PageScrollViewer1.UpdateLayout();
PageScrollViewer1.ScrollToVerticalOffset(200);
}