From c3e2a998c3a44c1ea83b95c82cf4f1f9f12eedf3 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 22 Feb 2017 14:39:57 +0100 Subject: [PATCH] fixe la fenetre d'alerte --- ZicMoove/ZicMoove/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZicMoove/ZicMoove/App.xaml.cs b/ZicMoove/ZicMoove/App.xaml.cs index 783dc231..ea3bdf16 100644 --- a/ZicMoove/ZicMoove/App.xaml.cs +++ b/ZicMoove/ZicMoove/App.xaml.cs @@ -334,7 +334,7 @@ namespace ZicMoove public static Task DisplayAlert(string title, string message, string yes = "OK", string no = null) { - var currentPage = ((NavigationPage)Current.MainPage).CurrentPage; + var currentPage = Navigation.NavigationStack.Last(); if (no == null) { return currentPage.DisplayAlert(title, message, yes).ContinueWith(task => true);