title: Xamarin App Shell - closing the flyout menu in code
body: <p>The design of my app requires that I have a button in the Flyout Header, a separate view, which navigates to a page</p>
  
  <p>Unlike the flyout items themselves though, when I click on the button, the page loads under the flyout header which stays open</p>
  
  <p>Is there a way to have a button mimic exactly what happens when navigating within the flyout contents themselves?</p>
  
  <p>The page I'm trying to navigate to is registered as a route in AppShell</p>
  
  <p>The code in the view referenced in FlyoutHeader calls it from the button click like so</p>
  
  <pre><code>     await Shell.Current.GoToAsync("thepage");
  </code></pre>
  
  <p>As mentioned above the flyout menu is open at this point in order to access the button but when clicked it loads the desired page but I want it to automatically shut the menu</p>
  
  <p>Is there a way to do this please?</p>