UWP : Message Dailog is not working with windows 10 Iot core RRS feed

  • Question

  • The below code is not working with windows 10 Iot core while it's working with my desktop application (windows 10).

           MessageDialog showDialog = new MessageDialog("If you leave before saving, your changes will be lost.Do you want to leave");
                            showDialog.Commands.Add(new UICommand("Yes") { Id = 0 });
                            showDialog.Commands.Add(new UICommand("No") { Id = 1 });
                            showDialog.DefaultCommandIndex = 0;
                            showDialog.CancelCommandIndex = 1;
                            var result = showDialog.ShowAsync().AsTask();
                            if ((int)result.Id == 0)

    Can any one suggest me what is the issue with iot core (Raspberry pi/ Dragon board 410c)
    Wednesday, December 28, 2016 6:04 AM


All replies

  • I found the  solution :

    That's because

    are on the 'not implemented yet' list.


    • Proposed as answer by Kristin Xie Thursday, December 29, 2016 5:38 AM
    • Marked as answer by Rajesh Barfa Thursday, December 29, 2016 7:01 AM
    Wednesday, December 28, 2016 7:00 AM
  • Hi rajeshbarfa,

    I'm glad to hear you have worked it out by yourself.  Thanks for sharing your solution here. It could be better for someone who has the same issue.

    By the way, please also remember to close this thread by marking helpful reply as an answer. Thanks.

    Have a nice day!


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 29, 2016 5:46 AM