Esempio n. 1
0
        // initialize a new LiveShapingItem
        internal void InitializeItem(LiveShapingItem lsi, object item, bool filtered, bool oneTime)
        {
            lsi.Item = item;

            if (!filtered)
            {
                foreach (LivePropertyInfo info in _sortInfos)
                {
                    // the item may raise a cross-thread PropertyChanged after
                    // the binding is set, but before the LSI is added to the list.
                    // If so, the LSI needs a different way to find the list
                    // (DDVSO 241164), namely a placeholder block that points
                    // directly to the root.
                    lsi.Block = _root.PlaceholderBlock;
                    lsi.SetBinding(info.Path, info.Property, oneTime, true);
                }
                foreach (LivePropertyInfo info in _groupInfos)
                {
                    lsi.SetBinding(info.Path, info.Property, oneTime);
                }
            }

            foreach (LivePropertyInfo info in _filterInfos)
            {
                lsi.SetBinding(info.Path, info.Property, oneTime);
            }

            lsi.ForwardChanges = !oneTime;
        }
 // Token: 0x060075BD RID: 30141 RVA: 0x00219CF4 File Offset: 0x00217EF4
 internal void InitializeItem(LiveShapingItem lsi, object item, bool filtered, bool oneTime)
 {
     lsi.Item = item;
     if (!filtered)
     {
         foreach (LivePropertyInfo livePropertyInfo in this._sortInfos)
         {
             lsi.Block = this._root.PlaceholderBlock;
             lsi.SetBinding(livePropertyInfo.Path, livePropertyInfo.Property, oneTime, true);
         }
         foreach (LivePropertyInfo livePropertyInfo2 in this._groupInfos)
         {
             lsi.SetBinding(livePropertyInfo2.Path, livePropertyInfo2.Property, oneTime, false);
         }
     }
     foreach (LivePropertyInfo livePropertyInfo3 in this._filterInfos)
     {
         lsi.SetBinding(livePropertyInfo3.Path, livePropertyInfo3.Property, oneTime, false);
     }
     lsi.ForwardChanges = !oneTime;
 }
        // initialize a new LiveShapingItem
        internal void InitializeItem(LiveShapingItem lsi, object item, bool filtered, bool oneTime)
        {
            lsi.Item = item;

            if (!filtered)
            {
                foreach (LivePropertyInfo info in _sortInfos)
                {
                    lsi.SetBinding(info.Path, info.Property, oneTime, true);
                }
                foreach (LivePropertyInfo info in _groupInfos)
                {
                    lsi.SetBinding(info.Path, info.Property, oneTime);
                }
            }

            foreach (LivePropertyInfo info in _filterInfos)
            {
                lsi.SetBinding(info.Path, info.Property, oneTime);
            }

            lsi.ForwardChanges = !oneTime;
        }