internal void OnQueryItemCount(QueryItemCountEventArgs e)
 {
     if (this.QueryItemCount != null)
     {
         this.QueryItemCount(this, e);
     }
 }
        internal int OnQueryItemCount(DataGridVirtualizingCollectionViewGroup collectionViewGroup)
        {
            QueryItemCountEventArgs e = new QueryItemCountEventArgs(this, collectionViewGroup);

            if (this.QueryItemCount != null)
            {
                this.QueryItemCount(this, e);
            }

            DataGridVirtualizingCollectionViewSource source = this.ParentCollectionViewSourceBase as DataGridVirtualizingCollectionViewSource;

            if (source != null)
            {
                source.OnQueryItemCount(e);
            }

            return(e.Count);
        }