public Convert ( object value, |
||
value | object | The value. |
targetType | Type of the target. | |
parameter | object | The parameter. |
culture | The culture. | |
리턴 | object |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (targetType != typeof(Visibility))
{
throw new InvalidOperationException("The target must be a visibility enumerator");
}
return value == null || value.Equals(new DateTime()) ? Visibility.Collapsed : Visibility.Visible;
}