public Convert ( object value, Type targetType, object parameter, |
||
value | object | The boolean value that is to be converted. |
targetType | Type | The type to which the value is to be converted. In this case it is always |
parameter | object | A parameter for the conversion. Not used in this converter, so it should always be null. |
culture | The culture information of the current culture, so that parsing can be adjusted to cultural conventions. | |
리턴 | object |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return DependencyProperty.UnsetValue;
return (bool)value ? Visibility.Collapsed : Visibility.Visible;
}