Hi all,
I have small issue, I have created a resource file that basicly define which control in my application should provide Validation.ErrorTemplate.
The error template is actually in another library (called WPFTools).
So in my application I have created the following ResourceDictionnary.
The problem is that at design time I get this error (at the bold and underlined line):
The resource "ErrorTemplate" could not be resolved.
But at run time, everything works fine, and the template is applied correctly to my controls.
(please note that the "ErrorTemplate" is a valid key in my resource in the mergeddictionary.
The error doesn't block my builds but I would love to get rid of it since it doesn't look good.
Any ideas?
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xceed="http://schemas.xceed.com/wpf/xaml/toolkit"><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="pack://application:,,,/WPFTools;component/Resources/ErrorTemplateResource.xaml" /></ResourceDictionary.MergedDictionaries><!--The error template used for the controls--><Style x:Key="ValidationErrorTemplateStyle" TargetType="{x:Type Control}"><Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}"/></Style><!--The style for all TextBox--><Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource ValidationErrorTemplateStyle}"/><!--The style for all ComboBox--><Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource ValidationErrorTemplateStyle}"/></ResourceDictionary>