Feature Request: Provide CanExecute() method with a new attribute [CanExecuteDependsOnProperty(nameof(IsBusy))] #2184
Closed
suugbut
started this conversation in
New Feature Discussions
Replies: 1 comment
-
At first glance the detail looks good but I'm afraid you have the wrong repository. This is for the .NET MAUI Community Toolkit but you want the .NET Community Toolkit. I don't have the power to transfer issue so can you please open it there and I will close one down. Feel free to refer to this in the new issue to help others if they stumble across this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my opinion
ObservableProperty
(as a publisher) should not know anything aboutICommand
(as a subscriber). So the followingis more elegant if it can be written as follows.
With
CanExecuteDependsOnProperty
we can also makeCanSave()
, for example, depend on properties defined in the base class.Any comments are welcome.
Beta Was this translation helpful? Give feedback.
All reactions