How to trigger the OnNavigatedFrom method of a page manually? #10217
Answered
by
lhak
SongOfYouth
asked this question in
Q&A
-
I want to notify a page to release some resource when close the TabViewItem which contains a frame which navigated to the page, the OnNavigatingFrom method is only triggered when the frame navigate to another page, is there any other way to trigger it? |
Beta Was this translation helpful? Give feedback.
Answered by
lhak
Dec 10, 2024
Replies: 1 comment 1 reply
-
The OnNavigatedFrom method of a page can be invoked by calling GetNavigationState on the frame object. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SongOfYouth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The OnNavigatedFrom method of a page can be invoked by calling GetNavigationState on the frame object.