In my Windows Phone app, I'm overriding the OnNavigatedTo
method to populate a RadListPicker
with some information. I have two arrays: one is a pre-filled DateTime array of size n, the second is a pre-filled string array of size n. I wanted to assign these two arrays to the RadListPicker
, such that the string array is what's displayed i.e. what the user sees as choices, and the DateTimeArray to be what RadListPicker.SelectedValue returns.
When I tried it this way, I got a debugger break
private void ShowResults(DateTime[] arrayDateTime, string[] arrayString, timeTypeEnum timeType)
{
radListPicker.ItemsSource = arrayString;
radListPicker.SelectedValue = arrayDateTime;
radListPicker.SelectedIndex = 4;
}
How can I fix this?