The ShowInputAsync()
returns a string, but I want to get the result, I mean Affirmation or Cancellation, from the Dialog.
If it returns null, it means the user hit Cancel:
private async void Button_Click(object sender, RoutedEventArgs e)
{
var result = await this.ShowInputAsync("Test", "Enter string:");
if (result == null)
return;
await this.ShowMessageAsync("Test", "You entered " + result + "!");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With