I often use and reuse user controls in my apps.
For example, if the user should enter the integer number, I have user control called an "" integrator, in which a label for the title, a textbox for the user input and the units (inches, second) , Etc ...) have a label for it.
There is already a verification rule in my user control which I have called "Integer validity rule", which controls the user input is an integer.
I have a style related to the verification rule that changes the control background and add an error message in the tool tip.
Occasionally, I use these basic controls in my UI, but I want to add other verification rules, such as "the integer should be more than 1023". With special error messages "UDP ports under 1024 are reserved, please select a high number".
Do you know in any way that I can add these beliefs rules elsewhere, but will it still trigger the style of my control? I had thought of promoting the verification error below the view tree, but found nothing good about it on the net.
Thank you for your reply,
A. Jannichard
Good ... you can reply to rooted "verification failed" events, but This IMO will be much more difficult than the IMO's application-level view modal which is responsible for coordinating verification between different view models.
Comments
Post a Comment