Provide IsNotBusy() method or IsNotBusy readonly property with a new attribute [DependsOnProperty(nameof(IsBusy))] #938
Labels
feature request 📬
A request for new changes to improve functionality
In my opinion
ObservableProperty
(as a publisher) should not know anything aboutICommand
or other properties (as a subscriber). So the followingis more elegant if it can be simplified as follows.
When
SaveCommand
depends onIsNotBusy
that depends onIsBusy
, it is enough to only decorateIsNotBusy
withDependsOnProperty(nameof(IsBusy))
.Interestingly
DependsOnProperty
letsCanSave()
, for example, depend on propertyIsBusy
defined in the base classBaseViewModel
.Any comments are welcome.
The text was updated successfully, but these errors were encountered: