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