3,034 questions
According to documentation, you can use the MessageDialog or ContentDialog classes. For example:
private async void button_Click( object sender, RoutedEventArgs e )
{
var md = new MessageDialog( content: "Are you sure?", title: "Warning" );
bool yes = false;
md.Commands.Add( new UICommand( "Yes", c => yes = true ) );
md.Commands.Add( new UICommand( "No", c => yes = false ) );
md.DefaultCommandIndex = 0;
md.CancelCommandIndex = 1;
await md.ShowAsync( );
if( yes )
{
// "Yes" pressed
// . . .
}
else
{
// . . .
}
}