Пример #1
0
        public static async Task <string> Show(string title = null, string message = null, string inputText = null, string inputPlaceholder = "Enter input", string confirmingText = "Ok", string dismissiveText = "Cancel", MaterialInputDialogConfiguration configuration = null)
        {
            var dialog = new MaterialInputDialog(title, message, inputText, inputPlaceholder, confirmingText, dismissiveText, configuration);

            dialog.PositiveButton.IsEnabled = false;

            await dialog.ShowAsync();

            return(await dialog.InputTaskCompletionSource.Task);
        }
Пример #2
0
 public Task <string> InputAsync(
     string title            = null,
     string message          = null,
     string inputText        = null,
     string inputPlaceholder = "Enter input",
     string confirmingText   = "Ok",
     string dismissiveText   = "Cancel",
     MaterialInputDialogConfiguration configuration = null)
 {
     return(MaterialInputDialog.Show(title, message, inputText, inputPlaceholder, confirmingText, dismissiveText, configuration));
 }