3
我想让listpicker下拉菜单转到全屏模式。当我将扩展模式输入到全屏时,只有第一次机会才会崩溃。下面是我的代码:Listpicker无法进入全屏模式Windows Phone
C#:
monthCat.SetValue(Microsoft.Phone.Controls.ListPicker.ItemCountThresholdProperty,12);
XAML:
<toolkit:ListPicker Name="monthCat" ExpansionMode="FullScreenOnly">
<toolkit:ListPickerItem Content="January" />
<toolkit:ListPickerItem Content="February" />
<toolkit:ListPickerItem Content="March" />
<toolkit:ListPickerItem Content="April" />
<toolkit:ListPickerItem Content="May" />
<toolkit:ListPickerItem Content="June" />
<toolkit:ListPickerItem Content="July" />
<toolkit:ListPickerItem Content="August" />
<toolkit:ListPickerItem Content="September" />
<toolkit:ListPickerItem Content="October" />
<toolkit:ListPickerItem Content="November" />
<toolkit:ListPickerItem Content="December" />
</toolkit:ListPicker>
当我删除了ExpensionMode,它工作正常,但它是不是在fullscreenmode。
ListPassworder是否在scrollviewr内? – Jaihind
我已经用下面的答案修复了它。 –