コード例 #1
0
 internal void OnQueryItemCount(QueryItemCountEventArgs e)
 {
     if (this.QueryItemCount != null)
     {
         this.QueryItemCount(this, e);
     }
 }
コード例 #2
0
        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);
        }