How to display a message directly from MainPage, I'm using MessageDialog, as per the code below:
namespace App4
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
var saida = new MessageDialog("Exibir Mensagem");
//Debug.WriteLine(saida);
await saida.ShowAsync();
this.NavigationCacheMode = NavigationCacheMode.Required;
}
The error is in this line:
await saida.ShowAsync();