pglazkov / MvvmValidation

Lightweight library that helps reduce boilerplate when implementing validation in XAML MVVM applications
MIT License
167 stars 31 forks source link

Controls ValidationErrorTemplate disappear after unloading then reloading (Caliburn.Micro) #28

Closed DMtsdt closed 4 years ago

DMtsdt commented 4 years ago

Whenever my validated View is deactivated then reactivated (closing then reopening a popup, switching between tabs, etc) I lose all pre-existing error templates on my validating controls.

The validation still persists in the ViewModel. I've tried:

To no avail.

The only thing that returns the ErrorTemplate is taking the property value out of the error condition then re-entering it to the condition.

DMtsdt commented 4 years ago

It seems to be a XAML/Binding issue. After placing all the validating Views inside AdornerDecorator the adorners now persist over deactivations.