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; } }