0

I tried to use the WPtoolkit CustomMessageBox with a listpicker.

The same problems can be seen running the CustomMessageBoxSample (in the WPtoolkit solution) only after changing the ItemsSource = new string[] { "5 minutes", "10 minutes", "1 hour", "4 hours", "1 day", "2 days", "10 day" } , that is having more than 5 elements, so it will open in FullMode by default.

In this case, leaving the other code example as it is, clicking the listpicker opens the fullMode selecting page but, after a selection, the whole CustomMessageBox is closed (you cannot decide to press its left or right button).

I tried to change the code as follows, but in this case the fullMode selecting page is opened behind the messageBox and cannot be seen and no selection can be done (you can see it, in greyed, if you put many items so it has a long list of items so some of them can be displayed in background below the foreground messagebox.

messageBox.Dismissing += (s1, e1) =>
{
  if (reassignListPicker.ListPickerMode == ListPickerMode.Expanded)
  {
    e1.Cancel = true;
  }
  else if (reassignListPicker.ListPickerMode == ListPickerMode.Full)
  {
    e1.Cancel = true;
    messageBox.Visibility = Visibility.Collapsed;
    //reassignListPicker.IsEnabled = true;
    //reassignListPicker.Focus();
    //reassignListPicker.UpdateLayout();
}
            };

But its not working. any help??

4

0 回答 0