public static async Task <bool> DisplayAlertAsync(this IPageDialogService pageDialogService, AlertDialogRequest request) { if (pageDialogService is IPopupDialogService popupDialogService) { return(await popupDialogService.DisplayAlertAsync(request)); } throw new NotSupportedException("The provided instance of IPageDialogService does not implement IPopupDialogService"); }
public static AlertPage CreateAlertPage(AlertDialogRequest request) => new AlertPage(request);
public AlertPage(AlertDialogRequest request) : base(request) { InitializeComponent(); }
public AlertPageBase(AlertDialogRequest request) { Request = request; }