[WinRT] Do not store previous page when popping (#565)
authorPaul DiPietro <pauldipietro@users.noreply.github.com>
Tue, 6 Dec 2016 12:01:43 +0000 (05:01 -0700)
committerRui Marinho <me@ruimarinho.net>
Tue, 6 Dec 2016 12:01:43 +0000 (12:01 +0000)
Xamarin.Forms.Platform.WinRT/NavigationPageRenderer.cs

index efb941f..5d6b212 100644 (file)
@@ -427,7 +427,9 @@ namespace Xamarin.Forms.Platform.WinRT
                                _currentPage.PropertyChanged -= OnCurrentPagePropertyChanged;
                        }
 
-                       _previousPage = _currentPage;
+                       if (!isPopping)
+                               _previousPage = _currentPage;
+
                        _currentPage = page;
 
                        if (page == null)