开发者

Clear the current content from a Frame?

开发者 https://www.devze.com 2023-03-15 18:52 出处:网络
I was wondering how you are meant to remove the current content from a frame and make it so it is not displayin开发者_开发问答g anything? Also I would like to know how you are supposed to remove all t

I was wondering how you are meant to remove the current content from a frame and make it so it is not displayin开发者_开发问答g anything? Also I would like to know how you are supposed to remove all the history from the frame as well?


for removing the Current Content

frame1.Content = null;

for removing all History use Navigated Event and set

frame1.NavigationService.RemoveBackEntry();

hope this helps


To clean all History

while(frame1.NavigationService.RemoveBackEntry()!= null);
0

精彩评论

暂无评论...
验证码 换一张
取 消