Alex Hope O'Connor
Alex Hope O'Connor

Reputation: 9704

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?

Upvotes: 14

Views: 17133

Answers (2)

Ozzy
Ozzy

Reputation: 303

To clean all History

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

Upvotes: 1

Binil
Binil

Reputation: 6583

for removing the Current Content

frame1.Content = null;

for removing all History use Navigated Event and set

frame1.NavigationService.RemoveBackEntry();

hope this helps

Upvotes: 21

Related Questions