Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.Threading.Tasks;
using Core.Interfaces;
using Core.Views;
using Xamarin.Forms;
namespace Core.Helpers
public class NavigationHelper : INavigationHelper
private bool _isNavigating = false;
public async Task GotoPage2()
await Navigate(new Page2View());
private async Task Navigate(Page page)
if (_isNavigating)
_isNavigating = true;
await Application.Current.MainPage.Navigation.PushAsync(page);
() => _isNavigating = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.