示例#1
0
 // called by the child XmlBindingWorker when there's a new raw value
 internal void UseNewXmlItem(object item)
 {
     PW.DetachFromRootItem();
     PW.AttachToRootItem(item);
     if (Status != BindingStatusInternal.AsyncRequestPending)
     {
         ParentBindingExpression.ScheduleTransfer(false);
     }
 }
示例#2
0
        internal override void AttachDataItem()
        {
            object item;

            if (XmlWorker == null)
            {
                item = DataItem;
            }
            else
            {
                XmlWorker.AttachDataItem();
                item = XmlWorker.RawValue();
            }

            PW.AttachToRootItem(item);

            if (PW.Length == 0)
            {
                ParentBindingExpression.SetupDefaultValueConverter(item.GetType());
            }
        }