sami vatansever

sami vatansever

  • NA
  • 9
  • 2.2k

raspberry pi 3 iot messagedialog problem. please help me

Jun 28 2016 11:56 AM
Dear all. i download http://www.c-sharpcorner.com/ebooks/step-into-windows-10-uwp link is book.example for dialog message.
i have raspberry pi 3 . i make part 5 example, but i have a problem.
run remote machine (my raspberry pi) i can not see dialog message.
run the local machine its work. please help me please.
 
using Windows.UI.Popups;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace App9
{
/// <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();
}
private async void Showbutton_Click(object sender, RoutedEventArgs e)
{
{
MessageDialog showDialog = new MessageDialog("Hi Welcome to Windows 10"); showDialog.Commands.Add(new UICommand("Yes")
{
Id = 0
}); showDialog.Commands.Add(new UICommand("No")
{
Id = 1
});
showDialog.DefaultCommandIndex = 0;
showDialog.CancelCommandIndex = 1;
var result = await showDialog.ShowAsync();
if ((int)result.Id == 0)
{
//do your task
}
else
{
//skip your task
}
}
}
}
}