public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { NLog.Info("", "Convert{0}", value.ToString()); if ((bool)value) { return(parameter); } else { return(DependencyProperty.UnsetValue); } }
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { NLog.Info("", "ConvertBack{0}", value.ToString()); return(object.Equals(value, parameter)); }