我得到这个例外,每当我试图交通前往M列表选择控件在我的应用程序中。System.Exception的{System.ArgumentException}值不在预期范围
+ this {App_name.App} App_name.App
+ sender {App_name.App} object {App_name.App}
- e {System.Windows.ApplicationUnhandledExceptionEventArgs} System.Windows.ApplicationUnhandledExceptionEventArgs
+ base {System.Windows.ApplicationUnhandledExceptionEventArgs} System.EventArgs {System.Windows.ApplicationUnhandledExceptionEventArgs}
+ ExceptionObject {System.ArgumentException: Value does not fall within the expected range.} System.Exception {System.ArgumentException}
Handled false bool
+ Non-Public members
代码为我的列表选择器是
<ListBox Margin="0,417,0,0">
<ListBoxItem>
<toolkit:ListPicker Name="LearnerFileChooser" Width="431" >
<toolkit:ListPickerItem Content="A" />
<toolkit:ListPickerItem Content="B" />
<toolkit:ListPickerItem Content="C" />
<toolkit:ListPickerItem Content="E" />
<toolkit:ListPickerItem Content="F" />
<toolkit:ListPickerItem Content="G" />
<toolkit:ListPickerItem Content="H" />
</toolkit:ListPicker>
</ListBoxItem>
如果我减少了没有。的项目为4,那么它可以正常工作,但会在多于4个项目上崩溃。
我试图创建字母从中用户可以选择列表。
可能重复的[Windows Phone的工具包ListPicker抛出未处理的异常(http://stackoverflow.com/questions/17065970/windows-phone-toolkit-listpicker-throws-an-unhandled-exception) –