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);
        }
示例#2
0
        //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);
                });
        }
示例#3
0
 public NewViewController(NewItemViewModel model) : base("NewViewController", null)
 {
     this.model = model;
 }
 public NewViewController (NewItemViewModel model) : base ("NewViewController", null)
 {
     this.model = model;
 }