public void InsertItems(int index, IList <T> models, bool freezeEndEdge = false)
        {
            _DataList.InsertRange(index, models);

            if (_Adapter.InsertAtIndexSupported)
            {
                _Adapter.InsertItems(index, models.Count, freezeEndEdge, _KeepVelocityOnCountChange);
            }
            else
            {
                _Adapter.ResetItems(_DataList.Count, freezeEndEdge, _KeepVelocityOnCountChange);
            }
        }
示例#2
0
 void InsertItemsInternal(int index, int count, bool freezeEndEdge)
 {
     if (_Adapter.InsertAtIndexSupported)
     {
         _Adapter.InsertItems(index, count, freezeEndEdge, _KeepVelocityOnCountChange);
     }
     else
     {
         _Adapter.ResetItems(_DataList.Count, freezeEndEdge, _KeepVelocityOnCountChange);
     }
 }