protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); this.model = this.GetViewModel<NewItemViewModel>(); this.label.Text = string.Format("Called from Button {0}", this.model.Id); }
//public NavigationViewModel(NavigationDelegate<NewItemViewModel> navigationDelegate, IWebHybrid webHybrid) //{ //} public void BindViewOwner(object owner) { this.webHybrid.RegisterCallback(NativeCall, id => { var newViewModel = new NewItemViewModel(id); this.controller.NavigateTo(owner, newViewModel); }); }
public NewViewController(NewItemViewModel model) : base("NewViewController", null) { this.model = model; }
public NewViewController (NewItemViewModel model) : base ("NewViewController", null) { this.model = model; }