How to intercept Navigation Bar Back Button Clicked in Xamarin Forms?

前端 未结 6 1624
死守一世寂寞
死守一世寂寞 2020-12-07 00:41

I have a xamarin form page where a user can update some data in a form. I need to intercept the Navigation Bar Back Button Clicked to warn the user if some data have not bee

6条回答
  •  天命终不由人
    2020-12-07 01:19

    In Xamarin.Forms, the Page class has an OnBackButtonPressed() method that you can tap into for all platforms

提交回复
热议问题