Trying the Xaml approach, I have included
xmlns:local="clr-namespace:XDGNegativeCellColorsCase"
System.Windows.Markup.XamlParseException: ''Cannot create unknown type '{clr-namespace:XDGNegativeCellColorsCase}IsNegativeConverter'.' Line number '27' and line position '10'.'
I have an IValueConverter declared as
namespace XDGNegativeCellColorsCase {[INDENT]public class IsNegativeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null) { if (((int)value) < 0) { return true; } else { return false; } } else { return false; } }[/INDENT][INDENT] public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {[/INDENT] throw new NotImplementedException(); } } }
Any help appreciated,
T.
Comment