public Convert ( object value, |
||
value | object | Boolean to invert |
targetType | ||
parameter | object | |
culture | System | |
return | object |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if ((value is bool) && (targetType == typeof(bool)))
{
bool v = (bool)value;
return !v;
}
else
{
return false;
}
}