public MainPageViewModel(IViewContext viewContext) { this.alertUtility = viewContext.GetAlertUtility(); this.navigation = viewContext.GetNavigation(); LogoutCommand = new Command(HandleAction); }
public OneVIewModel(IViewContext viewContext) { this.alertUtility = viewContext.GetAlertUtility(); this.navigation = viewContext.GetNavigation(); TestCommand = new Command(async() => await OnTest()); }
//private PageOne pageOne; public TwoViewModel(IViewContext viewContext) { this.alertUtility = viewContext.GetAlertUtility(); this.navigation = viewContext.GetNavigation(); TestTwoCommand = new Command(OnTwoTest); }