Implemented interface member:
property
Count
System.Collections.ICollection.Count
90 references to Count
PresentationFramework (83)
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (2)
426if ( rootInkCanvas.Children.Count != 0 ) 428List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
351if ( this.InkCanvas.Children.Count == 0 ) 356for (int x = 0; x < this.InkCanvas.Children.Count; x++)
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6431for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 6480for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (7)
708if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 714if (visualTreeIndex < children.Count) 775for (int i = realizedChildIndex; i < children.Count; i++) 1182for (int i = 0; i < children.Count; i++) 1966_realizedChildren = new List<UIElement>(children.Count); 1968for (int i = 0; i < children.Count; i++) 2101if (pos < children.Count)
src\Framework\System\Windows\Controls\DockPanel.cs (2)
223for (int i = 0, count = children.Count; i < count; ++i) 280int totalChildrenCount = children.Count;
src\Framework\System\Windows\Controls\Grid.cs (4)
436for (int i = 0, count = children.Count; i < count; ++i) 735for (int i = 0, count = children.Count; i < count; ++i) 953extData.CellCachesCollection = new CellCache[children.Count]; 4118_enumerator2Count = _enumerator2Collection.Count;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (8)
586if (children.Count == 0) 597else if (children.Count > 3) 600int count = children.Count - 3; 859int index = InternalChildren.Count - 3 - columnIndex; 860Debug.Assert(index >= 0 && index < InternalChildren.Count, "Error index when GetVisualIndex"); 1292if (columns != null && children.Count > columns.Count) 1310for (int i = 1; i < children.Count; i++) 1456iEnd = InternalChildren.Count - 3; // skip the floating header and the indicator.
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
304if (((index = column.ActualIndex) >= 0) && (index < InternalChildren.Count)) 419if (children.Count == columns.Count) 649for (int i = 0; i < children.Count; i++)
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
2864if ( uiElementCollection.Count > 0 ) 2868UIElement[] uiElementArray = new UIElement[uiElementCollection.Count]; 2869for ( int i = 0; i < uiElementCollection.Count; i++ ) 2954&& (inkCanvas.Strokes.Count > 0 || inkCanvas.Children.Count > 0));
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
2509int count = children.Count;
src\Framework\System\Windows\Controls\Panel.cs (4)
203if (Children != null && Children.Count > 0) 375return _uiElementCollection.Count; 646if ((_uiElementCollection != null) && (_uiElementCollection.Count > 0)) 1003int count = (_uiElementCollection != null) ? _uiElementCollection.Count : 0;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
494int count = yearViewChildren.Count;
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
95if (InternalChildren.Count == 0) 119return _uiElementCollection.Count;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
67int childrenCount = children.Count; 125for (int i = 0; i < children.Count; i++) 170for (int i = 0; i < children.Count; i++) 191arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, children.Count);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
65int childrenCount = children.Count; 305for (int i = 0, count = children.Count; i < count; ++i) 360_generatedItemsCollection = new List<UIElement>(children.Count); 374int childrenCount = children.Count;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (2)
187for (int i = 0, count = InternalChildren.Count; i < count; ++i) 279for (int i = 0, count = InternalChildren.Count; i < count; ++i)
src\Framework\System\Windows\Controls\Stack.cs (7)
580firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.X, children.Count) : 0; 587firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.Y, children.Count) : 0; 595for (int i = 0, count = children.Count; i < count; ++i) 643if (lastViewport == -1) { lastViewport = children.Count - 1; } 662int logicalExtent = children.Count; 756for (int i = 0, count = children.Count; i < count; ++i) 845Debug.Assert(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.Count));
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
425int childrenCount = children.Count;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (12)
1148int count = children.Count; 4206int childrenCount = children.Count; 8631if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 8637if (visualTreeIndex < children.Count) 8850if (pos < children.Count) 9045_realizedChildren = new List<UIElement>(children.Count); 9047for (int i = 0; i < children.Count; i++) 9092Debug.Assert(_realizedChildren.Count == children.Count, "Realized and visual children must match"); 9094for (int i = 0; i < children.Count; i++) 9120for (int i = realizedChildIndex; i < children.Count; i++) 9146for (int i = 0; i < children.Count; i++) 9269int extraChildren = children.Count - pageSize;
src\Framework\System\Windows\Controls\WrapPanel.cs (4)
239for(int i=0, count = children.Count; i<count; i++) 299for(int i=0, count = children.Count; i<count; i++) 334if(firstInLine < children.Count) 336arrangeLine(accumulatedV, curLineSize.V, firstInLine, children.Count, useItemU, itemU);
src\Framework\System\Windows\Documents\FixedPage.cs (4)
733return _uiElementCollection.Count; 875for (int i = 0, n = elementCollection.Count; i < n; i++) 909if (!(currentLevelIndex >= 0 && currentLevelIndex <= this.Children.Count)) 930Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
371int nChildren = _page.Children.Count;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
640if (_canvasChildren.Count == _contentRects.Count) 643for (int i = 0; i < _canvasChildren.Count; i++)
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (1)
97for (int i = 0; i < panel.Children.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (3)
181int childrenCount = InternalChildren.Count; 215int childrenCount = InternalChildren.Count; 258if (ignoreFirstChildBackground && this.Children.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
328for (int i = 0; i < Children.Count; i++)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
1120this.wfItemPresenter.stackPanel.Children.Insert(this.wfItemPresenter.stackPanel.Children.Count, BottomSpacerWrapper.Spacer); 1121this.wfItemPresenter.stackPanel.Children.Insert(this.wfItemPresenter.stackPanel.Children.Count, BottomSpacerWrapper.Placeholder);