gpt4 book ai didi

c# - Windows Phone 7's ListPicker control isn' t 打开全选窗口

转载 作者:行者123 更新时间:2023-11-30 19:00:04 25 4
gpt4 key购买 nike

这是闲置时的样子:

enter image description here

在这里,当我点击它时,它应该弹出全屏选择模式(根据我读过的内容):

enter image description here

可以看到,好像没有开启全屏选择模式。

这是我的 XAML:

<phone:PhoneApplicationPage 
x:Class="GameLense.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True">

<Grid>
<Grid.Resources>
<DataTemplate x:Name="PickerItemTemplate">
<StackPanel Orientation="Horizontal">
<Border Background="Transparent" Width="34" Height="34">
<Image Source="{Binding ImagePath}" Margin="12 0 0 0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Stretch="Fill"/>
</Border>
<TextBlock Text="{Binding Name}" Margin="12 0 0 0"/>
</StackPanel>
</DataTemplate>
<DataTemplate x:Name="PickerFullModeItemTemplate">
<StackPanel Orientation="Horizontal">
<Border Background="Gold" Width="34" Height="34">
<Image Source="{Binding ImagePath}" Margin="12 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Border>
<TextBlock Text="{Binding Name}" Margin="12 0 0 0"/>
</StackPanel>
</DataTemplate>
</Grid.Resources>

<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition />
</Grid.RowDefinitions>

<!--Begin Top Bar -->
<Image Grid.Row="0" Source="Images/topbarBg.png" Stretch="Fill" />
<TextBlock Text="Console" HorizontalAlignment="Left"
VerticalAlignment="Center" FontSize="35"
Padding="10"/>

<toolkit:ListPicker x:Name="lstPlatform"
ListPickerMode="Full"
Grid.Row="0" CacheMode="BitmapCache"
Margin="160 0 10 0" VerticalAlignment="Center"
ItemTemplate="{StaticResource PickerItemTemplate}"
FullModeItemTemplate="{StaticResource PickerFullModeItemTemplate}" />

<!--End Top Bar -->

</Grid>

</phone:PhoneApplicationPage>

关于我可能做错了什么有什么想法吗?

最佳答案

您在 ListPicker 控件上设置了 ItemCountThreshold="0" 以便立即进入全屏选择模式。

关于c# - Windows Phone 7's ListPicker control isn' t 打开全选窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6129531/

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