How to dispose current page in UWP

纵然是瞬间 提交于 2021-01-28 05:44:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!