WPF Tooltips in validation templates
The solutions here https://www.codeproject.com/Articles/15239/Validation-in-Windows-Presentation-Foundation
here https://stackoverflow.com/a/14550973/9731532
here https://social.msdn.microsoft.com/Forums/vstudio/en-US/d54e66da-8500-40a2-bc41-42e661043420/how-to-implement-tooltips-for-validation-errors-and-still-have-tooltips?forum=wpf
all create a tooltip to show validation errors by setting a style trigger. Is there a standard way to incorporate the tooltip into the validation template, without ruining anything? The issue with styles is that a control can only have a single style, you can't "absorb" the props defined in multiple styles. How would I add common styles if I already used my only style to add the tooltip? It doesn't feel right.
The invisible overlay in one of the answers is a really terrible idea, because it would consume clicks (this is what I mean by ruining something).
here https://stackoverflow.com/a/14550973/9731532
here https://social.msdn.microsoft.com/Forums/vstudio/en-US/d54e66da-8500-40a2-bc41-42e661043420/how-to-implement-tooltips-for-validation-errors-and-still-have-tooltips?forum=wpf
all create a tooltip to show validation errors by setting a style trigger. Is there a standard way to incorporate the tooltip into the validation template, without ruining anything? The issue with styles is that a control can only have a single style, you can't "absorb" the props defined in multiple styles. How would I add common styles if I already used my only style to add the tooltip? It doesn't feel right.
The invisible overlay in one of the answers is a really terrible idea, because it would consume clicks (this is what I mean by ruining something).
CodeProject
In this article, I'll walk you through using the built-in Validation classes that exist in Windows Presentation Foundation. I'll then discuss an alternative approach to validation that might suit a richer domain layer, by creating a custom WPF ErrorProvider.
Stack Overflow
Why is there no tooltip text on errors?
<Style TargetType="{x:Type TextBox}">
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTempl...
<Style TargetType="{x:Type TextBox}">
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTempl...