title: Disable Key Back event when entry a page - Windows 10 Mobile c#
body: <p>I have a function to return to the previous page when I click the back button hardware, but I want this event to be disabled on a given page (is a popup that has a page in).</p>
  
  <p>I want to turn off because when I want to return to the previous page, the popup remains visible and only navigates backward on the page which is under the popup, this is when I open the popup it shall not enter into the stack of visited pages that the system can return back down.</p>
  
  <p>the code that I have to get back is:</p>
  
  <pre><code>public NavigationService(Frame frame)
  {
      bool BackHardwareButtonisPresent = true;
      SystemNavigationManager.GetForCurrentView().BackRequested += (s, a) =&gt;
              {
                  if (BackHardwareButtonisPresent)
                  {
                      if (this.CanGoBack)
                      {
                          this.GoBack();
                          a.Handled = true;
                      }
                  }
              };
  }
  </code></pre>