Пример #1
0
        public Object Convert(Object value, Type targetType, Object parameter, String language)
        {
            var items     = (int)value;
            var boolValue = items > 0;

            return(BooleanToVisibilityConverter.Convert(boolValue));
        }
            public object Convert(object value, Type targetType, object parameter, string language)
            {
                var items     = (value as int?);
                var boolValue = (items != null && (items.Value > 0));

                return(BooleanToVisibilityConverter.Convert(boolValue));
            }
Пример #3
0
            public object Convert(object value, Type targetType, object parameter, string language)
            {
                var boxedBool = (value as bool?);
                var boolValue = (boxedBool != null && boxedBool.Value);

                return(BooleanToVisibilityConverter.Convert(!boolValue));
            }
Пример #4
0
            public object Convert(object value, Type targetType, object parameter, string language)
            {
                var boolValue = (value is int items && (items > 0));

                return(BooleanToVisibilityConverter.Convert(boolValue));
            }
            public object Convert(object value, Type targetType, object parameter, string language)
            {
                var boolValue = (value is bool boxedBool && boxedBool);

                return(BooleanToVisibilityConverter.Convert(boolValue));
            }