public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var stringValue = value == null
                ? string.Empty
                : value.ToString();

            return(BoolConvertHelper.ConvertCompare(stringValue, "0"));
        }
예제 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var stringValue = value == null
                ? string.Empty
                : value.ToString();

            return(BoolConvertHelper.ConvertCompare(stringValue, "true") ? "ViewCellSelected" : "ViewCellBasic");
        }
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(BoolConvertHelper.ConvertBack());
 }
예제 #4
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(!BoolConvertHelper.ConvertIsNullOrWhiteSpace(value as string));
 }