Base:
property
Count
System.Windows.Data.CollectionView.Count
Implemented interface member:
136 references to Count
Microsoft.VisualStudio.LanguageServices (1)
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
247
if (oldSelectedIndex >= 0 && oldSelectedIndex < Members.Items.
Count
- 1)
PresentationFramework (76)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
145
return this.OwningDataGrid.Items.
Count
;
151
if (row >= 0 && row < this.OwningDataGrid.Items.
Count
&&
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
49
_oldItemsCount = _listview.Items.
Count
;
110
if (_oldItemsCount != _listview.Items.
Count
)
112
peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.
Count
);
114
_oldItemsCount = _listview.Items.
Count
;
198
get { return _listview.Items.
Count
; }
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
364
size = itemCollection.
Count
;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
141
else if (items.
Count
> 0)
267
if (items != null && items.
Count
> 0)
290
if (startIndex == 0 || startIndex == items.
Count
)
296
for (int i = startIndex; i < items.
Count
; i++)
308
for (int i = startIndex; i < items.
Count
; i++)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
183
if (items.
Count
> 0)
185
children = new List<AutomationPeer>(items.
Count
);
186
for (int i = 0; i < items.
Count
; i++)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
100
int itemsCount = (owner as ItemsControl).Items.
Count
;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
81
if (items.
Count
> 0)
83
children = new List<AutomationPeer>(items.
Count
);
84
for (int i = 0; i < items.
Count
; i++)
System\Windows\Controls\ComboBox.cs (3)
1543
int count = Items.
Count
;
1560
SelectItemHelper(0, +1, Items.
Count
);
1565
SelectItemHelper(Items.
Count
- 1, -1, -1);
System\Windows\Controls\DataGrid.cs (19)
1803
if (rowIndex < (Items.
Count
- 1))
2650
indexToSelect = Math.Min(Items.
Count
- numSelected - 1, indexToSelect);
2731
index = Items.
Count
- 2;
2740
if (index < Items.
Count
&& ItemsControl.EqualsEx(newItem, Items[index]))
3823
int itemCount = Items.
Count
;
3831
if (Items.
Count
> 0)
3842
int itemsCount = Items.
Count
;
4359
int numItems = Items.
Count
;
4392
int numItems = Items.
Count
;
5656
(e.Key == Key.Down && currentRowIndex == Items.
Count
- 1))
5788
nextRowIndex = Items.
Count
- 1;
5814
nextRowIndex = Math.Max(0, Items.
Count
- 1);
5819
if (nextRowIndex >= Items.
Count
)
5993
int numItems = Items.
Count
;
6071
if ((_columns.Count > 0) && (Items.
Count
> 0))
6099
ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.
Count
- 1) : CurrentInfo;
6144
targetIndex = Math.Max(0, Math.Min(targetIndex, Items.
Count
- 1));
6426
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
6475
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
System\Windows\Controls\HeaderedItemsControl.cs (2)
349
itemCount = HasItems ? Items.
Count
: 0;
360
itemCount = HasItems ? Items.
Count
: 0;
System\Windows\Controls\ItemContainerGenerator.cs (1)
900
object target = (Parent == null) && (0 <= index && index < Host.View.
Count
) ? Host.View[index] : null;
System\Windows\Controls\ItemsControl.cs (2)
2606
int count = Items.
Count
;
4006
int itemsCount = HasItems ? Items.
Count
: 0;
System\Windows\Controls\Menu.cs (1)
352
for (int i = 0; i < Items.
Count
; i++)
System\Windows\Controls\MenuItem.cs (2)
633
for (int i = 0; i < menuItem.Items.
Count
; i++)
2364
int count = parent.Items.
Count
;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
653
dataGrid.CanUserResizeRows && dataGrid.Items.
Count
> 1 &&
System\Windows\Controls\Primitives\MenuBase.cs (1)
693
int itemsCount = menu.Items.
Count
;
System\Windows\Controls\Primitives\Selector.cs (6)
362
if ((value is int) && (int) value >= s.Items.
Count
)
414
if ( (selectedIndex > -1 && selectedIndex < s.Items.
Count
&& s.Items[selectedIndex] == value)
1231
for (int i = 0; i < Items.
Count
; i++)
1721
if ((selectedIndex > Items.
Count
- 1)
1995
for (int i=0; unknownCount > 0 && i<Items.
Count
; ++i)
2456
for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.
Count
; ++index)
System\Windows\Controls\TabControl.cs (6)
90
for (int i = 0; i < tabItemCollection.
Count
; i++)
402
if (startIndex > Items.
Count
)
442
startIndex = Items.
Count
;
463
for (int i = 0; i < Items.
Count
; i++)
466
if (index >= Items.
Count
)
469
index = Items.
Count
- 1;
System\Windows\Controls\TextSearch.cs (1)
390
int count = itemCollection.
Count
;
System\Windows\Controls\TreeViewItem.cs (1)
1039
for (int i = 0, count = item.Items.
Count
; i < count; i++)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
159
int numItems = items.
Count
;
983
int numItems = _owner.Items.
Count
;
1012
int numItems = _owner.Items.
Count
;
1068
int numItems = _owner.Items.
Count
;
1156
int numItems = _owner.Items.
Count
;
1200
int numItems = _owner.Items.
Count
;
1238
RemoveRegion(0, columnIndex, _owner.Items.
Count
, 1, ref removedRegions);
1259
int numItems = _owner.Items.
Count
;
1615
(rowIndex < owner.Items.
Count
) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12363
"Items:", ic.Items.
Count
,
System.Windows.Controls.Ribbon (59)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
724
int groupHeaderCount = groupHeaderItemsControl.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
1504
int itemCount = ribbon.Items.
Count
;
1541
if (SelectedIndex < 0 && Items.
Count
> 0)
1565
int itemCount = Items.
Count
;
1675
int itemCount = Items.
Count
;
1992
tab.Items.
Count
,
2043
quickAccessToolBar.Items.
Count
,
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
1051
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
1072
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
460
for (int i = 0; i < Ribbon.Items.
Count
; i++)
523
int itemCount = ribbon.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
101
return RibbonHelper.FindContainer(this, Items.
Count
- 1, -1, null, HasTabs) as RibbonContextualTabGroup;
258
int count = this.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
88
for (int i = 0; i < Items.
Count
; i++)
105
int itemCount = controlGroup.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
595
for (int i = 0; i < Items.
Count
; i++)
976
for (int i = 0; i < Items.
Count
; i++ )
1169
if (category != null && category.Items.
Count
> 0)
1439
for (int index=0; index<category.Items.
Count
; index++)
2156
for (int index = 0; index < category.Items.
Count
; index++)
2221
for (int index = 0; index < category.Items.
Count
; index++)
2320
for (int i = 0; i < this.Items.
Count
; i++)
2357
for (int i = 0; i < gallery.Items.
Count
; i++)
2532
for (int index = 0; index < gallery.Items.
Count
; index++)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (6)
505
if (Items.
Count
> 3)
535
else if (Items.
Count
== 3)
555
else if (Items.
Count
== 2)
844
if (Items.
Count
== 0)
861
for (int i = 0; i < Items.
Count
; i++)
1219
int itemCount = Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (19)
556
FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.
Count
- 1, -1, bringIntoViewCallback, additionalCheck);
569
int count = itemsControl.Items.
Count
;
593
if (itemIndex < parent.Items.
Count
)
607
if (startIndex == parent.Items.
Count
- 1)
610
if (startIndex < parent.Items.
Count
- 1)
637
startIndex = parent.Items.
Count
;
663
RibbonGalleryCategory lastCategory = RibbonHelper.FindContainer(gallery, gallery.Items.
Count
- 1, -1, null, IsContainerVisible) as RibbonGalleryCategory;
775
category = gallery.Items.
Count
> 0 ? gallery.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryCategory : null;
776
galleryItem = category != null && category.Items.
Count
> 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryItem : null;
793
endCatIndex = gallery.Items.
Count
;
814
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.
Count
- 1;
837
startColumnIndex = (galleryItem != null ? startItemIndex : category.Items.
Count
- 1) % columnCount;
844
endItemIndex = category.Items.
Count
;
866
int remainingItems = category.Items.
Count
;
906
int remainingItems = category.Items.
Count
- itemIndex;
1934
else if (menuItem.Items.
Count
== 0)
1945
if (menuItem.Items.
Count
== 0)
2251
for (int i = 0; i < originalItemsControl.Items.
Count
; i++)
2493
int parentItemCount = parentItemsControl.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
862
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
585
int itemCount = QuickAccessToolBar.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
363
_groupAutoResizeIndex = Items.
Count
- 1;
554
_groupAutoResizeIndex = Items.
Count
- 1;
580
_groupAutoResizeIndex = Items.
Count
- 1;
587
if (numAttempts == Items.
Count
)
787
int itemCount = Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
135
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.
Count
);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
142
int itemCount = _attachedTo.Items.
Count
;
386
int count = itemCollection.
Count
;