Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var set = this.CreateBindingSet <EditView, EditViewModel>();

            set.Bind(SubmitButton.Tap()).For(x => x.Command).To(vm => vm.SubmitRecordCommand);
            set.Bind(BackButton.Tap()).For(x => x.Command).To(vm => vm.BackRecordCommand);
            set.Bind(TextView).For(v => v.Text).To(vm => vm.Text).TwoWay();
            set.Apply();
        }