Base:
property
Count
System.Windows.Data.CollectionView.Count
Implemented interface member:
136 references to Count
Microsoft.VisualStudio.LanguageServices (1)
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
248
if (oldSelectedIndex >= 0 && oldSelectedIndex < Members.Items.
Count
- 1)
PresentationFramework (76)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
140
return this.OwningDataGrid.Items.
Count
;
146
if (row >= 0 && row < this.OwningDataGrid.Items.
Count
&&
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
37
_oldItemsCount = _listview.Items.
Count
;
98
if (_oldItemsCount != _listview.Items.
Count
)
100
peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.
Count
);
102
_oldItemsCount = _listview.Items.
Count
;
186
get { return _listview.Items.
Count
; }
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
354
size = itemCollection.
Count
;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
129
else if (items.
Count
> 0)
255
if (items != null && items.
Count
> 0)
278
if (startIndex == 0 || startIndex == items.
Count
)
284
for (int i = startIndex; i < items.
Count
; i++)
296
for (int i = startIndex; i < items.
Count
; i++)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
170
if (items.
Count
> 0)
172
children = new List<AutomationPeer>(items.
Count
);
173
for (int i = 0; i < items.
Count
; i++)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
88
int itemsCount = (owner as ItemsControl).Items.
Count
;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
68
if (items.
Count
> 0)
70
children = new List<AutomationPeer>(items.
Count
);
71
for (int i = 0; i < items.
Count
; i++)
System\Windows\Controls\ComboBox.cs (3)
1533
int count = Items.
Count
;
1550
SelectItemHelper(0, +1, Items.
Count
);
1555
SelectItemHelper(Items.
Count
- 1, -1, -1);
System\Windows\Controls\DataGrid.cs (19)
1800
if (rowIndex < (Items.
Count
- 1))
2647
indexToSelect = Math.Min(Items.
Count
- numSelected - 1, indexToSelect);
2728
index = Items.
Count
- 2;
2737
if (index < Items.
Count
&& ItemsControl.EqualsEx(newItem, Items[index]))
3820
int itemCount = Items.
Count
;
3828
if (Items.
Count
> 0)
3839
int itemsCount = Items.
Count
;
4356
int numItems = Items.
Count
;
4389
int numItems = Items.
Count
;
5653
(e.Key == Key.Down && currentRowIndex == Items.
Count
- 1))
5785
nextRowIndex = Items.
Count
- 1;
5811
nextRowIndex = Math.Max(0, Items.
Count
- 1);
5816
if (nextRowIndex >= Items.
Count
)
5990
int numItems = Items.
Count
;
6068
if ((_columns.Count > 0) && (Items.
Count
> 0))
6096
ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.
Count
- 1) : CurrentInfo;
6141
targetIndex = Math.Max(0, Math.Min(targetIndex, Items.
Count
- 1));
6423
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
6472
for (int i = (isGrouping ? Items.
Count
- 1 : itemsHost.Children.Count - 1); i >= 0; i--)
System\Windows\Controls\HeaderedItemsControl.cs (2)
344
itemCount = HasItems ? Items.
Count
: 0;
355
itemCount = HasItems ? Items.
Count
: 0;
System\Windows\Controls\ItemContainerGenerator.cs (1)
894
object target = (Parent == null) && (0 <= index && index < Host.View.
Count
) ? Host.View[index] : null;
System\Windows\Controls\ItemsControl.cs (2)
2597
int count = Items.
Count
;
3997
int itemsCount = HasItems ? Items.
Count
: 0;
System\Windows\Controls\Menu.cs (1)
342
for (int i = 0; i < Items.
Count
; i++)
System\Windows\Controls\MenuItem.cs (2)
623
for (int i = 0; i < menuItem.Items.
Count
; i++)
2354
int count = parent.Items.
Count
;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
648
dataGrid.CanUserResizeRows && dataGrid.Items.
Count
> 1 &&
System\Windows\Controls\Primitives\MenuBase.cs (1)
684
int itemsCount = menu.Items.
Count
;
System\Windows\Controls\Primitives\Selector.cs (6)
353
if ((value is int) && (int) value >= s.Items.
Count
)
405
if ( (selectedIndex > -1 && selectedIndex < s.Items.
Count
&& s.Items[selectedIndex] == value)
1222
for (int i = 0; i < Items.
Count
; i++)
1712
if ((selectedIndex > Items.
Count
- 1)
1986
for (int i=0; unknownCount > 0 && i<Items.
Count
; ++i)
2447
for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.
Count
; ++index)
System\Windows\Controls\TabControl.cs (6)
80
for (int i = 0; i < tabItemCollection.
Count
; i++)
392
if (startIndex > Items.
Count
)
432
startIndex = Items.
Count
;
453
for (int i = 0; i < Items.
Count
; i++)
456
if (index >= Items.
Count
)
459
index = Items.
Count
- 1;
System\Windows\Controls\TextSearch.cs (1)
378
int count = itemCollection.
Count
;
System\Windows\Controls\TreeViewItem.cs (1)
1035
for (int i = 0, count = item.Items.
Count
; i < count; i++)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
155
int numItems = items.
Count
;
979
int numItems = _owner.Items.
Count
;
1008
int numItems = _owner.Items.
Count
;
1064
int numItems = _owner.Items.
Count
;
1152
int numItems = _owner.Items.
Count
;
1196
int numItems = _owner.Items.
Count
;
1234
RemoveRegion(0, columnIndex, _owner.Items.
Count
, 1, ref removedRegions);
1255
int numItems = _owner.Items.
Count
;
1611
(rowIndex < owner.Items.
Count
) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12358
"Items:", ic.Items.
Count
,
System.Windows.Controls.Ribbon (59)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
721
int groupHeaderCount = groupHeaderItemsControl.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
1501
int itemCount = ribbon.Items.
Count
;
1538
if (SelectedIndex < 0 && Items.
Count
> 0)
1562
int itemCount = Items.
Count
;
1672
int itemCount = Items.
Count
;
1989
tab.Items.
Count
,
2040
quickAccessToolBar.Items.
Count
,
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
1049
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
1070
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
458
for (int i = 0; i < Ribbon.Items.
Count
; i++)
521
int itemCount = ribbon.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
99
return RibbonHelper.FindContainer(this, Items.
Count
- 1, -1, null, HasTabs) as RibbonContextualTabGroup;
256
int count = this.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
85
for (int i = 0; i < Items.
Count
; i++)
102
int itemCount = controlGroup.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
593
for (int i = 0; i < Items.
Count
; i++)
974
for (int i = 0; i < Items.
Count
; i++ )
1167
if (category != null && category.Items.
Count
> 0)
1437
for (int index=0; index<category.Items.
Count
; index++)
2154
for (int index = 0; index < category.Items.
Count
; index++)
2219
for (int index = 0; index < category.Items.
Count
; index++)
2318
for (int i = 0; i < this.Items.
Count
; i++)
2355
for (int i = 0; i < gallery.Items.
Count
; i++)
2530
for (int index = 0; index < gallery.Items.
Count
; index++)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (6)
502
if (Items.
Count
> 3)
532
else if (Items.
Count
== 3)
552
else if (Items.
Count
== 2)
841
if (Items.
Count
== 0)
858
for (int i = 0; i < Items.
Count
; i++)
1216
int itemCount = Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (19)
551
FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.
Count
- 1, -1, bringIntoViewCallback, additionalCheck);
564
int count = itemsControl.Items.
Count
;
588
if (itemIndex < parent.Items.
Count
)
602
if (startIndex == parent.Items.
Count
- 1)
605
if (startIndex < parent.Items.
Count
- 1)
632
startIndex = parent.Items.
Count
;
658
RibbonGalleryCategory lastCategory = RibbonHelper.FindContainer(gallery, gallery.Items.
Count
- 1, -1, null, IsContainerVisible) as RibbonGalleryCategory;
770
category = gallery.Items.
Count
> 0 ? gallery.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryCategory : null;
771
galleryItem = category != null && category.Items.
Count
> 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryItem : null;
788
endCatIndex = gallery.Items.
Count
;
809
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.
Count
- 1;
832
startColumnIndex = (galleryItem != null ? startItemIndex : category.Items.
Count
- 1) % columnCount;
839
endItemIndex = category.Items.
Count
;
861
int remainingItems = category.Items.
Count
;
901
int remainingItems = category.Items.
Count
- itemIndex;
1929
else if (menuItem.Items.
Count
== 0)
1940
if (menuItem.Items.
Count
== 0)
2246
for (int i = 0; i < originalItemsControl.Items.
Count
; i++)
2488
int parentItemCount = parentItemsControl.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
859
handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.
Count
, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
580
int itemCount = QuickAccessToolBar.Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
361
_groupAutoResizeIndex = Items.
Count
- 1;
552
_groupAutoResizeIndex = Items.
Count
- 1;
578
_groupAutoResizeIndex = Items.
Count
- 1;
585
if (numAttempts == Items.
Count
)
785
int itemCount = Items.
Count
;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
133
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.
Count
);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
138
int itemCount = _attachedTo.Items.
Count
;
381
int count = itemCollection.
Count
;