SavePage uses nav service

This commit is contained in:
Geoffroy BONNEVILLE
2020-04-21 13:14:56 +02:00
parent a1085b6010
commit c81f8bc835
4 changed files with 10 additions and 22 deletions

View File

@@ -160,7 +160,6 @@ namespace ModernKeePass
var launchActivatedEventArgs = e as LaunchActivatedEventArgs;
if (launchActivatedEventArgs != null && rootFrame.Content == null)
//rootFrame.Navigate(typeof(MainPage), launchActivatedEventArgs.Arguments);
_navigation.NavigateTo(Constants.Navigation.MainPage, launchActivatedEventArgs.Arguments);
// Ensure the current window is active
@@ -251,12 +250,10 @@ namespace ModernKeePass
Name = file.DisplayName,
Path = file.Path
};
//rootFrame.Navigate(typeof(MainPage), fileInfo);
_navigation.NavigateTo(Constants.Navigation.MainPage, fileInfo);
}
else
{
//rootFrame.Navigate(typeof(MainPage));
_navigation.NavigateTo(Constants.Navigation.MainPage);
}