52 references to Items
PresentationFramework (52)
MS\Internal\Data\CollectionViewGroupInternal.cs (17)
133for (int k = 0, n = Items.Count; k < n; ++k) 135CollectionViewGroupInternal subgroup = Items[k] as CollectionViewGroupInternal; 139return Items[k]; 251for (int k = 0, n = Items.Count; k < n; ++k) 253CollectionViewGroupInternal subgroup = Items[k] as CollectionViewGroupInternal; 269if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 298for (int k = 0, n = group.Items.Count; k < n; ++k) 301if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 308CollectionViewGroupInternal subgroup = group.Items[k] as CollectionViewGroupInternal; 321for (int k = 0, n = Items.Count; k < n; ++k) 323CollectionViewGroupInternal subgroup = Items[k] as CollectionViewGroupInternal; 341return Items[k]; 482CollectionViewGroupInternal subgroup = Items[i] as CollectionViewGroupInternal; 783if (_index >= _group.Items.Count) 786CollectionViewGroupInternal subgroup = _group.Items[_index] as CollectionViewGroupInternal; 790_current = _group.Items[_index]; 811if (_index < 0 || _index >= _group.Items.Count)
MS\Internal\Data\CollectionViewGroupRoot.cs (9)
524group.LastIndex = (group.Items[index] == subgroup ? index : 0); 532for (int n = group.Items.Count; index < n; ++index) 534subgroup = group.Items[index] as CollectionViewGroupInternal; 614for (int index = 0, n = group.Items.Count; index < n; ++index) 616subgroup = group.Items[index] as CollectionViewGroupInternal; 727for (int index = 0, n = group.Items.Count; index < n; ++index) 729subgroup = group.Items[index] as CollectionViewGroupInternal; 773for (int k = group.Items.Count - 1; k >= 0; --k) 775CollectionViewGroupInternal subgroup = group.Items[k] as CollectionViewGroupInternal;
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
47positionInSet = parent.Items.IndexOf(group) + 1; 76sizeOfSet = parent.Items.Count;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
381newCollection = currentGroup.Items;
System\Windows\Controls\DataGrid.cs (4)
5584if (cvg != null && cvg.Items.Count > 0) 5587if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5588(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item)))
System\Windows\Controls\ItemContainerGenerator.cs (1)
1989items = group.Items;
System\Windows\Data\BindingListCollectionView.cs (9)
351get { return (_isGrouping) ? _group.Items : null; } 528int index = (oldIndex == 0) ? 0 : _group.Items.Count - 1; 533int index = (newIndex == 0) ? 0 : _group.Items.Count; 802index = _group.Items.Count - 1; 808index = _group.Items.Count - 2; 2283_group.InsertSpecialItem(_group.Items.Count, _newItem, true /*loading*/); 2287_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/); 2335index = _group.Items.Count; 2341index = _group.Items.Count - 1;
System\Windows\Data\ListCollectionView.cs (9)
254get { return (IsGrouping) ? _group.Items : null; } 641int index = (oldIndex == 0) ? 0 : _group.Items.Count - 1; 646int index = (newIndex == 0) ? 0 : _group.Items.Count; 908index = _group.Items.Count - 1; 914index = _group.Items.Count - 2; 2975_group.InsertSpecialItem(_group.Items.Count, _newItem, true /*loading*/); 2979_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/); 3028index = _group.Items.Count; 3034index = _group.Items.Count - 1;