UWP -> WinUI3: How is navigating to pages done now? #4584
-
Converting a UWP app. What is the path forward from I was navigating to pages like below. How is that done now?
|
Beta Was this translation helpful? Give feedback.
Answered by
mikebattista
Aug 2, 2022
Replies: 1 comment 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mikebattista
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
NavigationService
still provides navigation. Instead ofViewModelLocator.Current
, you can get an instance through dependency injection by addingINavigationService
to a class constructor, or you can callApp.GetService<INavigationService>()
. Add aContent Grid
page and look atContentGridViewModel
for an example.