Skip to content

Trimming breaks page navigation #391

Closed Answered by amwx
PhantomGamers asked this question in Q&A
Discussion options

You must be logged in to vote

I had a quick look at your code, and you're navigating via Frame.Navigate(Type). This utilizes Activator.CreateInstance (reflection) to create the page views, which is likely the reason.

You can look into INavigationPageFactory which hands over the page creation to you (also allowing passing a ViewModel instance instead of just a Type). This is how the new sample app works, and the Frame page has some example code and instructions on this. I think that should help prevent this issue.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by PhantomGamers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants