Implemented interface member:
131 references to Count
Microsoft.VisualStudio.LanguageServices (3)
PreviewPane\PreviewPane.xaml.cs (3)
197if (grid.Children.Count == 1) 203if (grid.Children.Count == 0) 210if (grid.Children.Count == 1)
PresentationFramework (84)
MS\Internal\Ink\ClipboardProcessor.cs (2)
381if ( rootInkCanvas.Children.Count != 0 ) 383List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
348if ( this.InkCanvas.Children.Count == 0 ) 353for (int x = 0; x < this.InkCanvas.Children.Count; x++)
System\Windows\Controls\DataGrid.cs (2)
6426for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 6475for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--)
System\Windows\Controls\DataGridCellsPanel.cs (7)
706if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 712if (visualTreeIndex < children.Count) 773for (int i = realizedChildIndex; i < children.Count; i++) 1180for (int i = 0; i < children.Count; i++) 1964_realizedChildren = new List<UIElement>(children.Count); 1966for (int i = 0; i < children.Count; i++) 2099if (pos < children.Count)
System\Windows\Controls\DockPanel.cs (2)
217for (int i = 0, count = children.Count; i < count; ++i) 274int totalChildrenCount = children.Count;
System\Windows\Controls\Grid.cs (4)
374for (int i = 0, count = children.Count; i < count; ++i) 672for (int i = 0, count = children.Count; i < count; ++i) 890extData.CellCachesCollection = new CellCache[children.Count]; 3894_enumerator2Count = _enumerator2Collection.Count;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (8)
584if (children.Count == 0) 595else if (children.Count > 3) 598int count = children.Count - 3; 857int index = InternalChildren.Count - 3 - columnIndex; 858Debug.Assert(index >= 0 && index < InternalChildren.Count, "Error index when GetVisualIndex"); 1289if (columns != null && children.Count > columns.Count) 1307for (int i = 1; i < children.Count; i++) 1453iEnd = InternalChildren.Count - 3; // skip the floating header and the indicator.
System\Windows\Controls\GridViewRowPresenter.cs (3)
302if (((index = column.ActualIndex) >= 0) && (index < InternalChildren.Count)) 416if (children.Count == columns.Count) 646for (int i = 0; i < children.Count; i++)
System\Windows\Controls\InkCanvas.cs (4)
2724if ( uiElementCollection.Count > 0 ) 2728UIElement[] uiElementArray = new UIElement[uiElementCollection.Count]; 2729for ( int i = 0; i < uiElementCollection.Count; i++ ) 2808&& (inkCanvas.Strokes.Count > 0 || inkCanvas.Children.Count > 0));
System\Windows\Controls\ItemsControl.cs (1)
2506int count = children.Count;
System\Windows\Controls\Panel.cs (4)
199if (Children != null && Children.Count > 0) 371return _uiElementCollection.Count; 642if ((_uiElementCollection != null) && (_uiElementCollection.Count > 0)) 993int count = (_uiElementCollection != null) ? _uiElementCollection.Count : 0;
System\Windows\Controls\Primitives\CalendarItem.cs (1)
493int count = yearViewChildren.Count;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
94if (InternalChildren.Count == 0) 118return _uiElementCollection.Count;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
66int childrenCount = children.Count; 124for (int i = 0; i < children.Count; i++) 169for (int i = 0; i < children.Count; i++) 190arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, children.Count);
System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
64int childrenCount = children.Count; 304for (int i = 0, count = children.Count; i < count; ++i) 359_generatedItemsCollection = new List<UIElement>(children.Count); 373int childrenCount = children.Count;
System\Windows\Controls\Primitives\UniformGrid.cs (2)
179for (int i = 0, count = InternalChildren.Count; i < count; ++i) 271for (int i = 0, count = InternalChildren.Count; i < count; ++i)
System\Windows\Controls\Stack.cs (7)
574firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.X, children.Count) : 0; 581firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.Y, children.Count) : 0; 589for (int i = 0, count = children.Count; i < count; ++i) 637if (lastViewport == -1) { lastViewport = children.Count - 1; } 656int logicalExtent = children.Count; 750for (int i = 0, count = children.Count; i < count; ++i) 839Debug.Assert(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.Count));
System\Windows\Controls\VirtualizingPanel.cs (1)
379int childrenCount = children.Count;
System\Windows\Controls\VirtualizingStackPanel.cs (12)
1180int count = children.Count; 4288int childrenCount = children.Count; 8789if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 8795if (visualTreeIndex < children.Count) 9008if (pos < children.Count) 9203_realizedChildren = new List<UIElement>(children.Count); 9205for (int i = 0; i < children.Count; i++) 9249Debug.Assert(_realizedChildren.Count == children.Count, "Realized and visual children must match"); 9251for (int i = 0; i < children.Count; i++) 9275for (int i = realizedChildIndex; i < children.Count; i++) 9301for (int i = 0; i < children.Count; i++) 9423int extraChildren = children.Count - pageSize;
System\Windows\Controls\WrapPanel.cs (4)
237for(int i=0, count = children.Count; i<count; i++) 297for(int i=0, count = children.Count; i<count; i++) 332if(firstInLine < children.Count) 334arrangeLine(accumulatedV, curLineSize.V, firstInLine, children.Count, useItemU, itemU);
System\Windows\Documents\FixedPage.cs (5)
128if (_uiElementCollection.Count != 0) 702return _uiElementCollection.Count; 844for (int i = 0, n = elementCollection.Count; i < n; i++) 878if (!(currentLevelIndex >= 0 && currentLevelIndex <= this.Children.Count)) 899Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count);
System\Windows\Documents\RubberbandSelector.cs (1)
273int nChildren = _page.Children.Count;
System\Windows\Input\KeyboardNavigation.cs (2)
592if (_canvasChildren.Count == _contentRects.Count) 595for (int i = 0; i < _canvasChildren.Count; i++)
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2434UIElement[] children = new UIElement[fixedPage.Children.Count];
System.Windows.Controls.Ribbon (43)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
368int childrenCount, endCountForUpdate = children.Count; 456for (int i = 0, count = children.Count; i < count; ++i) 598for (int i = 0, count = children.Count; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (2)
330int childrenCount = children.Count; 541int childrenCount = children.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
59int childCount = children.Count; 196int childCount = children.Count; 273int childCount = children.Count; 307int childCount = children.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
150if (children.Count != _cachedChildCount) 153_cachedChildCount = children.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
209for (int i = 0; i < children.Count; i++) 224for (int i = 0; i < children.Count; i++)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
26for (int i = 0; i < Children.Count; i++) 47for (int i = 0, count = children.Count; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (15)
55RemoveInternalChildRange(0, InternalChildren.Count); 76if (index < InternalChildren.Count) 82int indexInOverflowPanel = index - InternalChildren.Count; 194if (i >= children.Count || 198overflowPanel.Children.Count > 0 && 218base.RemoveInternalChildRange(i, children.Count - i); 229Debug.Assert(overflowPanel.Children.Count >= overflowIndex, "overflowIndex should never get above overflowPanel.Children.Count"); 232overflowPanel.Children.Count == overflowIndex || 284for (int i = 0, count = children.Count; i < count; ++i) 315Debug.Assert(GeneratedChildren.Count > InternalChildren.Count); 316int numItemsExpectedInOverflowPanel = GeneratedChildren.Count - InternalChildren.Count; 317Debug.Assert(QAT.OverflowPanel.Children.Count == numItemsExpectedInOverflowPanel); 321for (int j = 0; j < InternalChildren.Count; j++) 334for (int k = InternalChildren.Count; k < GeneratedChildren.Count; k++) 336int overflowPanelIndex = k - InternalChildren.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (10)
39if (children.Count == 0) 183int childCount = children.Count; 237int count = children.Count; 252Debug.Assert(children.Count > index && index >= 0); 383int countAllTabs = children.Count; 436int countAllTabs = children.Count; 488int childCount = children.Count; 541int childCount = children.Count; 639int countAllTabs = children.Count; 672int childCount = children.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
39int childCount = children.Count; 57int childCount = children.Count;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
58int count = Children.Count;