MVVM
This commit is contained in:
19
1Project/构建新框架/MVVM/UI框架.md
Normal file
19
1Project/构建新框架/MVVM/UI框架.md
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
单向绑定
|
||||
``` csharp
|
||||
[OnValueChanged(viewModel=>viewModel.hp, value=>string.Format("{0:D4}"))]
|
||||
CustomText text;
|
||||
|
||||
public class CustomText
|
||||
{
|
||||
public Text text;
|
||||
public void SetText(string str)
|
||||
{
|
||||
text.text = str;
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
deepseek扩展:
|
||||
[DeepSeek - 探索未至之境](https://chat.deepseek.com/a/chat/s/a42c8fe7-2dd9-44a4-9854-e1ec34f3e2cf)
|
||||
0
1Project/构建新框架/MVVM/扩展其他组件.md
Normal file
0
1Project/构建新框架/MVVM/扩展其他组件.md
Normal file
Reference in New Issue
Block a user