Value Converter Group crashes build tool
Posted: 13 Mar 2015, 14:57
I am trying to integrate a value converter group so that I can invert a bool and then convert the result to a visibility. When I add the following to my xaml the build tool crashes Unity at startup:
The code for the converter:
Code: Select all
<common:ValueConverterGroup x:Key="invertBoolAndChangeVisibilityConverter">
<common:InvertBoolConverter/>
<common:BoolToVisibilityConverter/>
</common:ValueConverterGroup>Code: Select all
public class ValueConverterGroup : List<IValueConverter>, IValueConverter
{
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return this.Aggregate (value, (current, converter) => converter.Convert (current, targetType, parameter, culture));
}
public object ConvertBack (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException ();
}
}