如何在UWP中处理当前页面 [英] How to dispose current page in UWP

查看:39
本文介绍了如何在UWP中处理当前页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我在UWP应用程序中有2页.并命名为Mainpage和HomePage.现在,我使用下面的语句从MainPage导航到HomePage.

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))

现在,我要处置MainPage的对象和内存.我们如何在UWP应用程序中做到这一点.

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.

推荐答案

您没有,垃圾收集器会在适当的时候为您完成此操作.

You do not, the garbage collector does it for you when appropriate.

这篇关于如何在UWP中处理当前页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆