MonoMobile.Views.BindingExpression.UpdateSource C# (CSharp) Method

UpdateSource() public method

public UpdateSource ( ) : void
return void
        public void UpdateSource()
        {
            var targetValue = GetTargetValue();

            UpdateSource(Binding.ViewSource, _ViewProperty, targetValue);

            if (SourceProperty != null && SourceProperty != _ViewProperty)
                UpdateSource(Binding.Source, SourceProperty, targetValue);
        }

Same methods

BindingExpression::UpdateSource ( object obj, MemberInfo member, object targetValue ) : void

Usage Example

示例#1
0
        public void Update(object value)
        {
            ControlValue = value;

            if (BindingExpression != null && BindingExpression.Binding != null && BindingExpression.Binding.Mode == BindingMode.TwoWay)
            {
                value = BindingExpression.ConvertbackValue(value);

                BindingExpression.UpdateSource();
            }
        }