清除框架中的当前内容? [英] Clear the current content from a Frame?

查看:43
本文介绍了清除框架中的当前内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道您是如何从框架中删除当前内容并使其不显示任何内容的?我也想知道您也应该如何删除框架中的所有历史记录?

I was wondering how you are meant to remove the current content from a frame and make it so it is not displaying anything? Also I would like to know how you are supposed to remove all the history from the frame as well?

推荐答案

用于删除当前内容

frame1.Content = null;

要删除所有 History ,请使用 Navigated Event 并进行设置

for removing all History use Navigated Event and set

frame1.NavigationService.RemoveBackEntry();

希望这会有所帮助

这篇关于清除框架中的当前内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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