public object Convert (object value, Type targetType, object param, CultureInfo culture) { if (ReferenceEquals(value, DependencyProperty.UnsetValue)) return DependencyProperty.UnsetValue; return (Visibility)value == Visibility.Hidden; }