public async Task NavigateToDetailsAsync (Route route) { await App.Current.MainPage.Navigation.PushAsync (new DetailsView (route)); }
public DetailsView(Route route) { InitializeComponent (); this.BindingContext = Ninja.Get<DetailsViewModel> (new ConstructorArgument("route", route)); }
public DetailsViewModel (Route route, IRouteRepository routeRepository) { _routeRepository = routeRepository; this.Route = route; this.LoadAsync (); }