title: Xamarin.forms event on leaving/changing the page
body: <p>I'm looking for something like a function</p>
  
  <pre><code>protected override void OnDisappearing()
  {
  }
  </code></pre>
  
  <p>in Xamarin Forms. The problem is that this feature is called even when I turn off the phone display. I'm looking for a feature that only responds to the event when the page is changed - for example, the user in the menu clicks on a page other than the one that is being visited.</p>
  
  <p>thanks for your advice</p>