Following a first question on WPF Cascading Binding,
I remarked that I had more Resources than desired defined in both the MainWindow
I prepared simplified way out displaying one data during design time and latter during run time. Hopefully you will find it useful and adjust to your case.
XAML:
Converter:
class IsInDesignModeConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if ((bool)(DesignerProperties.IsInDesignModeProperty.GetMetadata(typeof(DependencyObject)).DefaultValue))
return values[0];
return values[1];
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
As a result it display Design mode text during design time and Run time when running. In your case instead of TextBlock you can insert already defined resources.