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