title: How can I remove pages from a Frame's history?
body: <p>How can I manipulate a Frame's history in a WinRT XAML app?</p>
  
  <p>The user will start on my hub page, where they can select an existing project to go to its edit screen, or they can select "new project". "New project" will take them through a short wizard, then take them to the "edit project" screen.</p>
  
  <p>It makes sense for the wizard pages to just be pages that I navigate to in the frame; that way the user can back out of the wizard if they change their mind. (It'll only be two pages, so "back" can take the place of "cancel".) But once the wizard is done and the changes are committed, there's no longer any reason for those wizard pages to be in the history; if the user clicks Back from the "edit project" page, I want them to go right back to the hub.</p>
  
  <p>To illustrate, I want the flow to look something like this:</p>
  
  <ul>
  <li>Frame history: Hub. <em>User clicks "New Project".</em></li>
  <li>Frame history: Hub -> Wizard Page 1. <em>User clicks "Next".</em></li>
  <li>Frame history: Hub -> Wizard Page 1 -> Wizard Page 2. <em>User clicks "Finish".</em></li>
  <li>Frame history: Hub -> Edit Project.</li>
  </ul>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/windows.ui.xaml.controls.frame.aspx" rel="nofollow">Frame</a> doesn't seem to have any methods along the lines of "remove from history". The docs do have hints that there might be some way to override the history, because the docs for <a href="http://msdn.microsoft.com/en-us/library/windows.ui.xaml.controls.frame.goback.aspx" rel="nofollow">GoBack</a> say "Navigates to the most recent item in back navigation history, <em>if a Frame manages its own navigation history</em>" (emphasis mine), but that's all it has to say on the topic -- there's no mention of how someone else can manage history for it. So I don't know whether that's useful or not.</p>
  
  <p>How can I remove my wizard pages from my Frame's history once the user completes the wizard?</p>