问题
For Example I am having 2 pages in UWP application. with the names Mainpage and HomePage. Now I am using below statement for navigating to HomePage from MainPage.
Frame.Navigate(typeof(HomePage))
Now I want to dispose objects and memory of my MainPage. How Can we do that in UWP applicaiton.
Please provide your suggestions to solve this issue.
回答1:
You do not, the garbage collector does it for you when appropriate.
来源:https://stackoverflow.com/questions/43638188/how-to-dispose-current-page-in-uwp