Here is what I have so far:
- a
UserControl
with aGrid
and aTextBox
- the
TextBox.Text
property is bound to a custom dependency property
I mapped the validation adorner site to the TextBox
Validation.SetValidationAdornerSite(this, this.InputTextBox);
When binding a text to the custom dependency property of my UserControl
the validation errors now should be passed to the inner TextBox
.
That works fine. The TextBox
gets its red border when an error is fired, but I don't get the error adorner running, so no error messages are displayed.
Using mahapps the errors usally get shown in a red little rectangle next to the e.g. TextBox
.
Now I don't know if this is a bug or if I maybe missed something.
Thanks in advance!