Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Trigger to MouseOver Property of ValidationMessage #3540

Merged
merged 4 commits into from Jul 11, 2019

Conversation

timunie
Copy link
Collaborator

@timunie timunie commented Jun 30, 2019

Describe the changes you have made to improve this project

Added a MouseOver Trigger to the Validation Template to show the Error Message.

  • Add a new ValidationHelper static class for Validation.
  • Add an attached property ShowValidationErrorOnMouseOver which can control this feature for a single control.
  • Add also the same property to the CustomValidationPopup class to allow setting this behavior to all controls.
  • Add an attached property CloseOnMouseLeftButtonDown to the ValidationHelper to enable setting this behavior for a single control.

Additional context

image

Closed Issues

Closes #3539

Added Trigger to show Validation Message on MouseOver  the red Triangle
- Add a new helper static class for Validation.
- Add an attached property ShowValidationErrorOnMouseOver which can control this feature for a single control.
- Add also the same property to the CustomValidationPopup class to allow setting this behavior to all controls.
@punker76 punker76 added this to the 2.0.0 milestone Jul 10, 2019
Copy link
Collaborator Author

@timunie timunie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Morning @punker76

this is a quite good idea! I love the idea that the user can change the way the validation behaves. I was thinking of a property like this one, but i didn't knew that it was that easy to implement. Thank you 👍

Happy coding
Tim

Add an attached property CloseOnMouseLeftButtonDown to the ValidationHelper to enable setting this behavior for a single control.
@punker76 punker76 merged commit 1f793da into MahApps:develop Jul 11, 2019
@punker76
Copy link
Member

@timunie your changes have been merged, thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Validation Error only visible if control has the focus
2 participants