Exemple #1
0
        /// <summary>
        /// Gets value from binding path.
        /// </summary>
        public object GetValue()
        {
            var obj              = Objects.Last();
            var value            = obj.GetPropertyValue(Properties.Last());
            var transformedValue = value;

            if (IsNegated)
            {
                transformedValue = !(bool)value;
            }

            if (ValueConverter != null)
            {
                transformedValue = ValueConverter.ConvertToGeneric(transformedValue);
            }

            return(transformedValue);
        }
Exemple #2
0
        /// <summary>
        /// Gets value from binding path.
        /// </summary>
        public object GetValue()
        {
            var obj              = Objects.Last();
            var value            = obj.GetPropertyValue(Properties.Last());
            var transformedValue = value;

            if (IsNegated)
            {
                transformedValue = !(bool)value;
            }

            if (ValueConverter != null)
            {
                transformedValue = ValueConverter.ConvertToGeneric(transformedValue);
            }

            if (ConvertToBindableCollection)
            {
                transformedValue = transformedValue.ToBindableCollection(LayoutRootGetter());
            }

            return(transformedValue);
        }