public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null || (value is string && (value as string) == string.Empty)) { return Visibility.Collapsed; } else { return Visibility.Visible; } }