Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear the current content from a Frame?

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?

like image 240
Alex Hope O'Connor Avatar asked Jun 27 '11 03:06

Alex Hope O'Connor


2 Answers

for removing the Current Content

frame1.Content = null;

for removing all History use Navigated Event and set

frame1.NavigationService.RemoveBackEntry();

hope this helps

like image 132
Binil Avatar answered Nov 15 '22 13:11

Binil


To clean all History

while(frame1.NavigationService.RemoveBackEntry()!= null);
like image 29
Ozzy Avatar answered Nov 15 '22 14:11

Ozzy