Пример #1
0
        /// <summary>
        /// Updates the source object from the Target object.
        /// </summary>
        public void UpdateSource()
        {
            if (this.Binding.Mode == BindingMode.OneWay)
            {
                return;
            }

            var target = this.Target;

            if (target != null)
            {
                var targetValue = BindingExpression.GetValue(this.Target, this.targetPropertyInfo);
                this.Binding.UpdateSourceValue(this.Source, targetValue);
            }
        }