public override bool AskConfirmation(string text) { bool?result = null; Application.InvokeOnMainThread(() => result = ConfirmationDialog.Show(text)); while (result == null) { Thread.Sleep(1); } return(result.Value); }
public static bool Show(string text) { var dialog = new ConfirmationDialog(text); return(dialog.Show()); }