Example #1
0
        public async Task <T> ShowAsync <T>(OptionsDialog <T> dialog)
        {
            string selectedLabel = await GetCurrentPage().DisplayActionSheet(dialog.Title, dialog.Cancel.Key, null, dialog.Options.Select(o => o.Key).ToArray());

            return(dialog.GetSelectedOption(selectedLabel));
        }
Example #2
0
 public async Task <string> ShowAsync(OptionsDialog dialog)
 {
     return(await GetCurrentPage().DisplayActionSheet(dialog.Title, dialog.Cancel, null, dialog.Options.ToArray()));
 }