Base:
property
Count
System.Windows.Data.CollectionView.Count
Implemented interface member:
property
Count
System.Collections.ICollection.Count
85 references to Count
PresentationFramework (75)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
144
return this.OwningDataGrid.Items.
Count
;
150
if (row >= 0 && row < this.OwningDataGrid.Items.
Count
&&
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
45
_oldItemsCount = _listview.Items.
Count
;
106
if (_oldItemsCount != _listview.Items.
Count
)
108
peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.
Count
);
110
_oldItemsCount = _listview.Items.
Count
;
194
get { return _listview.Items.
Count
; }
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
327
size = itemCollection.
Count
;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
138
else if (items.
Count
> 0)
264
if (items != null && items.
Count
> 0)
287
if (startIndex == 0 || startIndex == items.
Count
)
293
for (int i = startIndex; i < items.
Count
; i++)
305
for (int i = startIndex; i < items.
Count
; i++)
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
158
if (items.
Count
> 0)
160
children = new List<AutomationPeer>(items.
Count
);
161
for (int i = 0; i < items.
Count
; i++)
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
97
int itemsCount = (owner as ItemsControl).Items.
Count
;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
78
if (items.
Count
> 0)
80
children = new List<AutomationPeer>(items.
Count
);
81
for (int i = 0; i < items.
Count
; i++)
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1545
int count = Items.
Count
;
1562
SelectItemHelper(0, +1, Items.
Count
);
1567
SelectItemHelper(Items.
Count
- 1, -1, -1);
src\Framework\System\Windows\Controls\DataGrid.cs (19)
1807
if (rowIndex < (Items.
Count
- 1))
2655
indexToSelect = Math.Min(Items.
Count
- numSelected - 1, indexToSelect);
2736
index = Items.
Count
- 2;
2745
if (index < Items.
Count
&& ItemsControl.EqualsEx(newItem, Items[index]))
3828
int itemCount = Items.
Count
;
3836
if (Items.
Count
> 0)
3847
int itemsCount = Items.
Count
;
4364
int numItems = Items.
Count
;
4397
int numItems = Items.
Count
;
5661
(e.Key == Key.Down && currentRowIndex == Items.
Count
- 1))
5793
nextRowIndex = Items.
Count
- 1;
5819
nextRowIndex = Math.Max(0, Items.
Count
- 1);
5824
if (nextRowIndex >= Items.
Count
)
5998
int numItems = Items.
Count
;
6076
if ((_columns.Count > 0) && (Items.
Count
> 0))
6104
ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.
Count
- 1) : CurrentInfo;
6149
targetIndex = Math.Max(0, Math.Min(targetIndex, Items.
Count
- 1));
6431
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
6480
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (2)
345
itemCount = HasItems ? Items.
Count
: 0;
356
itemCount = HasItems ? Items.
Count
: 0;
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2609
int count = Items.
Count
;
3938
int itemsCount = HasItems ? Items.
Count
: 0;
src\Framework\System\Windows\Controls\Menu.cs (1)
378
for (int i = 0; i < Items.
Count
; i++)
src\Framework\System\Windows\Controls\MenuItem.cs (2)
628
for (int i = 0; i < menuItem.Items.
Count
; i++)
2424
int count = parent.Items.
Count
;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
654
dataGrid.CanUserResizeRows && dataGrid.Items.
Count
> 1 &&
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
704
int itemsCount = menu.Items.
Count
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (6)
372
if ((value is int) && (int) value >= s.Items.
Count
)
424
if ( (selectedIndex > -1 && selectedIndex < s.Items.
Count
&& s.Items[selectedIndex] == value)
1249
for (int i = 0; i < Items.
Count
; i++)
1741
if ((selectedIndex > Items.
Count
- 1)
2040
for (int i=0; unknownCount > 0 && i<Items.
Count
; ++i)
2501
for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.
Count
; ++index)
src\Framework\System\Windows\Controls\TabControl.cs (6)
91
for (int i = 0; i < tabItemCollection.
Count
; i++)
403
if (startIndex > Items.
Count
)
443
startIndex = Items.
Count
;
464
for (int i = 0; i < Items.
Count
; i++)
467
if (index >= Items.
Count
)
470
index = Items.
Count
- 1;
src\Framework\System\Windows\Controls\TextSearch.cs (1)
403
int count = itemCollection.
Count
;
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
1039
for (int i = 0, count = item.Items.
Count
; i < count; i++)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
160
int numItems = items.
Count
;
986
int numItems = _owner.Items.
Count
;
1015
int numItems = _owner.Items.
Count
;
1071
int numItems = _owner.Items.
Count
;
1159
int numItems = _owner.Items.
Count
;
1203
int numItems = _owner.Items.
Count
;
1241
RemoveRegion(0, columnIndex, _owner.Items.
Count
, 1, ref removedRegions);
1262
int numItems = _owner.Items.
Count
;
1618
(rowIndex < owner.Items.
Count
) && (columnIndex < owner.Columns.Count))
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12202
"Items:", ic.Items.
Count
,
System.Activities.Presentation (10)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (2)
127
if (editors == null || editors.Items.
Count
== 0)
144
int childCount = properties.Items.
Count
;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
107
int childCount = properties.Items.
Count
;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
106
return this.Items.
Count
;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
208
int numItems = items.
Count
;
1163
&& nextSelectedIndex < dataGrid.Items.
Count
- 1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
466
int insertIndex = this.ContextMenu.Items.
Count
;
567
for (int i = index + 1; i < this.ContextMenu.Items.
Count
&& !visible; i++)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
938
if (null != breadcrumbItems && breadcrumbItems.Items.
Count
> 0 && Keyboard.Modifiers == ModifierKeys.None && (e.Key == Key.Left || e.Key == Key.Right))
943
UIElement last = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(breadcrumbItems.Items.
Count
- 1);