From a48b056952dc08548f36e8ab6bdfb3bac13f4219 Mon Sep 17 00:00:00 2001 From: ju Date: Fri, 11 May 2018 08:17:39 +0200 Subject: [PATCH] changed calls to the viewmodel lifecycle from uwp page --- MvvmCross/Platforms/Uap/Views/MvxWindowsPage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MvvmCross/Platforms/Uap/Views/MvxWindowsPage.cs b/MvvmCross/Platforms/Uap/Views/MvxWindowsPage.cs index e00631efb..33c46e603 100644 --- a/MvvmCross/Platforms/Uap/Views/MvxWindowsPage.cs +++ b/MvvmCross/Platforms/Uap/Views/MvxWindowsPage.cs @@ -39,7 +39,7 @@ namespace MvvmCross.Platforms.Uap.Views private void MvxWindowsPage_Unloaded(object sender, RoutedEventArgs e) { - ViewModel?.ViewDisappeared(); + ViewModel?.ViewDestroy(); } protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) @@ -104,6 +104,7 @@ namespace MvvmCross.Platforms.Uap.Views protected override void OnNavigatedFrom(NavigationEventArgs e) { + ViewModel?.ViewDisappeared(); base.OnNavigatedFrom(e); var bundle = this.CreateSaveStateBundle(); SaveStateBundle(e, bundle);