Delete current content from frame?

I was wondering, how are you going to remove the current content from the frame and make it display nothing? I would also like to know how you should remove the whole story from the frame?

+8
c # wpf xaml
source share
2 answers

to remove Current Content

 frame1.Content = null; 

to delete all History use Navigated Event and set

 frame1.NavigationService.RemoveBackEntry(); 

hope this helps

+13
source share

Clear the whole story

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

All Articles