Using custom graphics while command inputs are not valid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems that when ValidateInputsEventHandler determines that the inputs are not valid (using ValidateInputsEventArgs.areInputsValid Property), it not only disables the OK button, but also prevents the firing of ExecutePreview event handler. With that in mind, is there any method to use custom graphics when inputs are invalid and ExecutePreview event handler is disabled? For example use custom graphics to graphically show the user why inputs are not valid.
I thought instead of setting areInputsValid to false we can set Command.isOKButtonVisible to false to prevent execution of command, but it seems it is not possible to set isButtonVisible property outside CommandCreatedEventHandler.notify Method.
Website: https://perceptino.com