Exemplo n.º 1
0
        protected internal virtual ValueUpdateResult UpdateValueCore(
            RadPropertyValue propVal)
        {
            object      currentValue = propVal.GetCurrentValue(false);
            ValueSource valueSource  = propVal.ValueSource;

            propVal.ComposeCurrentValue();
            return(this.RaisePropertyNotifications(propVal, currentValue, propVal.GetCurrentValue(false), valueSource));
        }
Exemplo n.º 2
0
        public ValueSource GetValueSource(RadProperty property)
        {
            RadPropertyValue entry = this.propertyValues.GetEntry(property, true);

            if (entry.ValueSource == ValueSource.Unknown)
            {
                entry.ComposeCurrentValue();
            }
            return(entry.ValueSource);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Performs the core value update logic.
        /// </summary>
        /// <param name="propVal"></param>
        /// <returns>The result of the operation.</returns>
        protected internal virtual ValueUpdateResult UpdateValueCore(RadPropertyValue propVal)
        {
            object      oldValue  = propVal.GetCurrentValue(false);
            ValueSource oldSource = propVal.ValueSource;

            //force re-composition of property's current value
            propVal.ComposeCurrentValue();

            return(this.RaisePropertyNotifications(propVal, oldValue, propVal.GetCurrentValue(false), oldSource));
        }