You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So say you have a button in a menu which is in a region and a view in another region with a button performing the same function like a search.
How would one go about disabling both buttons if no search text is provided.
This is easily accomplished for the one using a delegate command and working with its CanExecute property.
I have an application commands class containing composite commands which I use to execute the one search for both buttons. But not sure how you would best handle "Can Execute" for both
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So say you have a button in a menu which is in a region and a view in another region with a button performing the same function like a search.
How would one go about disabling both buttons if no search text is provided.
This is easily accomplished for the one using a delegate command and working with its CanExecute property.
I have an application commands class containing composite commands which I use to execute the one search for both buttons. But not sure how you would best handle "Can Execute" for both
Beta Was this translation helpful? Give feedback.
All reactions