Several times, situations arise when we need to disable the the Buttons on the page based on some condition.
Obviously, it is possible to hide the Button based on condition using the VisibleWhen property. But, sometimes user may get confused as Buttons appears and disappears. So, its better to disable instead of hide.
Thank you for your reply! Yes, this can also be done. But, if we can have property similar to VisibleWhen, it will be much easier to achieve such requirement.
you can use a css class with dynamic classes based on a value.
use the following within css class f.e.: