예제 #1
0
 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);
     }
 }
예제 #2
0
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     NLog.Info("", "ConvertBack{0}", value.ToString());
     return(object.Equals(value, parameter));
 }