示例#1
0
        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");
        }
示例#2
0
 public static AlertPage CreateAlertPage(AlertDialogRequest request) =>
 new AlertPage(request);
示例#3
0
 public AlertPage(AlertDialogRequest request)
     : base(request)
 {
     InitializeComponent();
 }
示例#4
0
 public AlertPageBase(AlertDialogRequest request)
 {
     Request = request;
 }