Home > Software design >  How to close opened page in ViewModel in xamarin forms
How to close opened page in ViewModel in xamarin forms

Time:09-17

I am developing xamarin forms application. Now, I have to close my opened page with button command. I want someone to help me with this.

CodePudding user response:

Please use this code in your xamarin forms ViewModel.

await Application.Current.MainPage.Navigation.PopAsync();
  • Related