3
How to display a direct message from Mainpage, I am using Messagedialog as 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 on this line:
await saida.ShowAsync();