Код: Выделить всё
F1 M 0,36L 18,0L 36,36L 0,36 Z
Код: Выделить всё
public class BoolConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetTypes, object parameter, CultureInfo culture)
{
if (values.Any(val => val is null))
throw new ArgumentNullException("One of the bindings values is null");
return (bool)values[0]
? values[1]
: values[2];
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Код: Выделить всё
White
Вопрос: почему значение привязки иногда становится нулевым при передаче в IMultiValueConverter?
Подробнее здесь: https://stackoverflow.com/questions/791 ... valueconve