Skip to content

Instantly share code, notes, and snippets.

@ionixjunior
Last active December 4, 2016 15:29
Show Gist options
  • Save ionixjunior/c9c95ffcd87eb7e4672ff9f9a679f1c5 to your computer and use it in GitHub Desktop.
Save ionixjunior/c9c95ffcd87eb7e4672ff9f9a679f1c5 to your computer and use it in GitHub Desktop.
using System.Threading.Tasks;
using System.Windows.Input;
using Core.Interfaces;
using Xamarin.Forms;
namespace Core.ViewModels
{
public class Page1ViewModel : BaseViewModel
{
public ICommand GotoPage2Command =>
new Command(async () => await GotoPage2());
private async Task GotoPage2()
{
await DependencyService.Get<INavigationHelper>().GotoPage2();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment