예제 #1
0
        private void Button_Clicked(object sender, EventArgs e)
        {
            IDisplayAlert display = DependencyService.Get <IDisplayAlert>();

            if (display != null)
            {
                display.DisplayAlert();
            }
            ;
        }
예제 #2
0
 public static async Task DisplayAlertAsync(this ContentPage page, IDisplayAlert displayAlert)
 {
     await page.DisplayAlert(displayAlert.title, displayAlert.message, displayAlert.cancel);
 }