public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var isInverse = this.IsInverse(parameter); if (value == null) { return(isInverse ? Visibility.Visible : Visibility.Collapsed); } var b = (bool)value; return(VisibilityHelper.FromValue(b, isInverse)); }