XAML resources are loaded in the order they are read; when using a StaticResource
, you need to be sure that this resource is available before being used.
To solve this, ensure the definition of the resources validationTemplate
and textBoxInError
is above ContactNameTemplate
and EditingContactNameTemplate
.