Closed wxysy closed 1 year ago
This is by design. You have to set the value of the generated property in order for it to notify changes. If you change that command to set MyString
instead of the field, that'll work correctly 🙂
This is by design. You have to set the value of the generated property in order for it to notify changes. If you change that command to set
MyString
instead of the field, that'll work correctly 🙂
Thank you for your help.
Describe the bug
当我使用ObservableProperty特性标注一个字段myString时,该框架自动生成一个对应属性MyString。 将此属性绑定到WPF文本控件TextBox后,我修改字段myString的内容,TextBox控件内容不更新;但是如果我直接修改属性MyString,TextBox控件内容则会自动更新。
Regression
No response
Steps to reproduce
Expected behavior
请修复此bug。
Screenshots
No response
IDE and version
VS 2022
IDE version
No response
Nuget packages
Nuget package version(s)
8.0.0
Additional context
No response
Help us help you
No, just wanted to report this