I would like to do something when a bool property changes the value when in the view the user chages the value.
I have this:
[ObservableProperty]
bool _myProperty;
In somewhere, I don't remember where, I have read I could define a method which name is On[PropertyName] or On[PropertyName]Changed or somethink like that, that would be execute when the value of the property changes.
I have probe some variations of this, but all of them fail.
I am wrong and I misunderstood the examples that I have read?
I would like to do something when a bool property changes the value when in the view the user chages the value.
I have this:
In somewhere, I don't remember where, I have read I could define a method which name is On[PropertyName] or On[PropertyName]Changed or somethink like that, that would be execute when the value of the property changes.
I have probe some variations of this, but all of them fail.
I am wrong and I misunderstood the examples that I have read?
Thanks.