Last active
December 4, 2016 15:29
-
-
Save ionixjunior/c9c95ffcd87eb7e4672ff9f9a679f1c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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