MVVM
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
|
||||
结论:比一般的在属性中直接设置Text文本更复杂,小型项目没有必要
|
||||
|
||||
需要一个View,一个ViewModel
|
||||
|
||||
绑定使用表达式树封装成Action
|
||||
- 需要定义数据到UI显示的格式化
|
||||
- bindingSet.For(view=>view.SetText)
|
||||
- 需要定义绑定哪个字段
|
||||
- bindingSet.To(viewModel=>viewModel.XXX)
|
||||
Reference in New Issue
Block a user