예제 #1
0
        internal override void UpdateValue(object value)
        {
            int    k    = PW.Length - 1;
            object item = PW.GetItem(k);

            if (item == null || item == BindingExpression.NullDataItem)
            {
                return;
            }

            // if the binding is async, post a request to set the value
            if (ParentBinding.IsAsync && !(PW.GetAccessor(k) is DependencyProperty))
            {
                RequestAsyncSetValue(item, value);
                return;
            }

            PW.SetValue(item, value);
        }