locked
Create a simple MessageBox

    Question

  • I understand that it is possible to display a message box to the user with MessageDialog class.

    Problem is, if I want to customize it a little (use Yes/No buttons instead of default button for example), I have to create a UICommand object and a UICommandInvokedHandler delegate for each button I want to add. This is a bit overkill when I compare it to Win32 MessageBox API or .Net MessageBox.Show.

    Is there an easier way to display a message box than using MessageDialog object?

    Monday, October 10, 2011 9:30 PM

Answers

  • Hi Pierre,

    There isn't a simpler way. The commands method provides more flexibility at the expense of simplicity.

    Rather than using many MessageBoxes you may want to look into less modal options (such as flyouts) to keep a more fluid user experience. 

    --Rob

    Thursday, October 13, 2011 12:36 AM
    Owner

All replies

  • Hi Pierre,

    There isn't a simpler way. The commands method provides more flexibility at the expense of simplicity.

    Rather than using many MessageBoxes you may want to look into less modal options (such as flyouts) to keep a more fluid user experience. 

    --Rob

    Thursday, October 13, 2011 12:36 AM
    Owner
  • This makes sense. Thank you.

     

    Friday, October 14, 2011 1:42 PM