Closed sonhai1710 closed 2 weeks ago
This is the expected behavior. You're assigning a value to the property that it already has, so there is no change, hence why the method isn't invoked. I'm not even sure how you'd imagine actually fixing this (other than adding some additional state to track "is this the first time the setter is invoked" or something).
Describe the bug
I'm using CommunityToolkit.Mvvm 8.2.2 and .NET 8.0. I created an Enum property: `
` But it does not fire the event OnTestEnumChanged. It works fine if I change the value of TestEnum in command ClickCommand For the string value or other types, it works fine, except for enum type. How can I fire the OnTestEnumChanged in constructor?
Regression
No response
Steps to reproduce
Expected behavior
It will go to the OnTestEnumChanged before window loaded, because I set the value of TestEnum in constructor
Screenshots
No response
IDE and version
VS 2022
IDE version
No response
Nuget packages
Nuget package version(s)
8.2.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item