void ViewBind(CommonNoticeView view) { BindingSet <CommonNoticeView, CommonNoticeViewModel> bindingSet = view.CreateBindingSet <CommonNoticeView, CommonNoticeViewModel>(); bindingSet.Bind(view.rootActive).For(v => v.activeSelf).To(vm => vm.rootActive).OneWay(); bindingSet.Bind(view.YesBtnActive).For(v => v.activeSelf).To(vm => vm.YesBtnActive).OneWay(); bindingSet.Bind(view.yNameText).For(v => v.text).To(vm => vm.yNameText).OneWay(); bindingSet.Bind(view.NoBtnActive).For(v => v.activeSelf).To(vm => vm.NoBtnActive).OneWay(); bindingSet.Bind(view.nNameText).For(v => v.text).To(vm => vm.nNameText).OneWay(); bindingSet.Bind(view.TitleText).For(v => v.text).To(vm => vm.TitleText).OneWay(); bindingSet.Build(); }