Implemented interface member:
131 references to Count
Microsoft.VisualStudio.LanguageServices (3)
PreviewPane\PreviewPane.xaml.cs (3)
198
if (grid.Children.
Count
== 1)
204
if (grid.Children.
Count
== 0)
211
if (grid.Children.
Count
== 1)
PresentationFramework (84)
MS\Internal\Ink\ClipboardProcessor.cs (2)
374
if ( rootInkCanvas.Children.
Count
!= 0 )
376
List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.
Count
);
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
339
if ( this.InkCanvas.Children.
Count
== 0 )
344
for (int x = 0; x < this.InkCanvas.Children.
Count
; x++)
System\Windows\Controls\DataGrid.cs (2)
6381
for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.
Count
- 1); i >= 0; i--)
6430
for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.
Count
- 1); i >= 0; i--)
System\Windows\Controls\DataGridCellsPanel.cs (7)
700
if (isRecycled && visualTreeIndex < children.
Count
&& children[visualTreeIndex] == container)
706
if (visualTreeIndex < children.
Count
)
767
for (int i = realizedChildIndex; i < children.
Count
; i++)
1174
for (int i = 0; i < children.
Count
; i++)
1954
_realizedChildren = new List<UIElement>(children.
Count
);
1956
for (int i = 0; i < children.
Count
; i++)
2089
if (pos < children.
Count
)
System\Windows\Controls\DockPanel.cs (2)
207
for (int i = 0, count = children.
Count
; i < count; ++i)
264
int totalChildrenCount = children.
Count
;
System\Windows\Controls\Grid.cs (4)
362
for (int i = 0, count = children.
Count
; i < count; ++i)
660
for (int i = 0, count = children.
Count
; i < count; ++i)
872
extData.CellCachesCollection = new CellCache[children.
Count
];
3877
_enumerator2Count = _enumerator2Collection.
Count
;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (8)
580
if (children.
Count
== 0)
591
else if (children.
Count
> 3)
594
int count = children.
Count
- 3;
853
int index = InternalChildren.
Count
- 3 - columnIndex;
854
Debug.Assert(index >= 0 && index < InternalChildren.
Count
, "Error index when GetVisualIndex");
1290
if (columns != null && children.
Count
> columns.Count)
1308
for (int i = 1; i < children.
Count
; i++)
1454
iEnd = InternalChildren.
Count
- 3; // skip the floating header and the indicator.
System\Windows\Controls\GridViewRowPresenter.cs (3)
297
if (((index = column.ActualIndex) >= 0) && (index < InternalChildren.
Count
))
411
if (children.
Count
== columns.Count)
644
for (int i = 0; i < children.
Count
; i++)
System\Windows\Controls\InkCanvas.cs (4)
2727
if ( uiElementCollection.
Count
> 0 )
2731
UIElement[] uiElementArray = new UIElement[uiElementCollection.
Count
];
2732
for ( int i = 0; i < uiElementCollection.
Count
; i++ )
2811
&& (inkCanvas.Strokes.Count > 0 || inkCanvas.Children.
Count
> 0));
System\Windows\Controls\ItemsControl.cs (1)
2466
int count = children.
Count
;
System\Windows\Controls\Panel.cs (4)
191
if (Children != null && Children.
Count
> 0)
363
return _uiElementCollection.
Count
;
634
if ((_uiElementCollection != null) && (_uiElementCollection.
Count
> 0))
985
int count = (_uiElementCollection != null) ? _uiElementCollection.
Count
: 0;
System\Windows\Controls\Primitives\CalendarItem.cs (1)
487
int count = yearViewChildren.
Count
;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
89
if (InternalChildren.
Count
== 0)
113
return _uiElementCollection.
Count
;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
55
int childrenCount = children.
Count
;
113
for (int i = 0; i < children.
Count
; i++)
158
for (int i = 0; i < children.
Count
; i++)
179
arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, children.
Count
);
System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
54
int childrenCount = children.
Count
;
291
for (int i = 0, count = children.
Count
; i < count; ++i)
348
_generatedItemsCollection = new List<UIElement>(children.
Count
);
362
int childrenCount = children.
Count
;
System\Windows\Controls\Primitives\UniformGrid.cs (2)
170
for (int i = 0, count = InternalChildren.
Count
; i < count; ++i)
262
for (int i = 0, count = InternalChildren.
Count
; i < count; ++i)
System\Windows\Controls\Stack.cs (7)
563
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.X, children.
Count
) : 0;
570
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.Y, children.
Count
) : 0;
578
for (int i = 0, count = children.
Count
; i < count; ++i)
626
if (lastViewport == -1) { lastViewport = children.
Count
- 1; }
645
int logicalExtent = children.
Count
;
739
for (int i = 0, count = children.
Count
; i < count; ++i)
828
Debug.Assert(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.
Count
));
System\Windows\Controls\VirtualizingPanel.cs (1)
369
int childrenCount = children.
Count
;
System\Windows\Controls\VirtualizingStackPanel.cs (12)
1174
int count = children.
Count
;
4262
int childrenCount = children.
Count
;
8762
if (isRecycled && visualTreeIndex < children.
Count
&& children[visualTreeIndex] == container)
8768
if (visualTreeIndex < children.
Count
)
8981
if (pos < children.
Count
)
9176
_realizedChildren = new List<UIElement>(children.
Count
);
9178
for (int i = 0; i < children.
Count
; i++)
9222
Debug.Assert(_realizedChildren.Count == children.
Count
, "Realized and visual children must match");
9224
for (int i = 0; i < children.
Count
; i++)
9248
for (int i = realizedChildIndex; i < children.
Count
; i++)
9274
for (int i = 0; i < children.
Count
; i++)
9396
int extraChildren = children.
Count
- pageSize;
System\Windows\Controls\WrapPanel.cs (4)
226
for(int i=0, count = children.
Count
; i<count; i++)
286
for(int i=0, count = children.
Count
; i<count; i++)
321
if(firstInLine < children.
Count
)
323
arrangeLine(accumulatedV, curLineSize.V, firstInLine, children.
Count
, useItemU, itemU);
System\Windows\Documents\FixedPage.cs (5)
121
if (_uiElementCollection.
Count
!= 0)
695
return _uiElementCollection.
Count
;
837
for (int i = 0, n = elementCollection.
Count
; i < n; i++)
871
if (!(currentLevelIndex >= 0 && currentLevelIndex <= this.Children.
Count
))
892
Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.
Count
);
System\Windows\Documents\RubberbandSelector.cs (1)
259
int nChildren = _page.Children.
Count
;
System\Windows\Input\KeyboardNavigation.cs (2)
583
if (_canvasChildren.
Count
== _contentRects.Count)
586
for (int i = 0; i < _canvasChildren.
Count
; i++)
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2426
UIElement[] children = new UIElement[fixedPage.Children.
Count
];
System.Windows.Controls.Ribbon (43)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
362
int childrenCount, endCountForUpdate = children.
Count
;
450
for (int i = 0, count = children.
Count
; i < count; ++i)
592
for (int i = 0, count = children.
Count
; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (2)
324
int childrenCount = children.
Count
;
535
int childrenCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
56
int childCount = children.
Count
;
193
int childCount = children.
Count
;
270
int childCount = children.
Count
;
304
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
144
if (children.
Count
!= _cachedChildCount)
147
_cachedChildCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
204
for (int i = 0; i < children.
Count
; i++)
219
for (int i = 0; i < children.
Count
; i++)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
21
for (int i = 0; i < Children.
Count
; i++)
42
for (int i = 0, count = children.
Count
; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (15)
48
RemoveInternalChildRange(0, InternalChildren.
Count
);
69
if (index < InternalChildren.
Count
)
75
int indexInOverflowPanel = index - InternalChildren.
Count
;
187
if (i >= children.
Count
||
191
overflowPanel.Children.
Count
> 0 &&
211
base.RemoveInternalChildRange(i, children.
Count
- i);
222
Debug.Assert(overflowPanel.Children.
Count
>= overflowIndex, "overflowIndex should never get above overflowPanel.Children.Count");
225
overflowPanel.Children.
Count
== overflowIndex ||
274
for (int i = 0, count = children.
Count
; i < count; ++i)
305
Debug.Assert(GeneratedChildren.Count > InternalChildren.
Count
);
306
int numItemsExpectedInOverflowPanel = GeneratedChildren.Count - InternalChildren.
Count
;
307
Debug.Assert(QAT.OverflowPanel.Children.
Count
== numItemsExpectedInOverflowPanel);
311
for (int j = 0; j < InternalChildren.
Count
; j++)
324
for (int k = InternalChildren.
Count
; k < GeneratedChildren.Count; k++)
326
int overflowPanelIndex = k - InternalChildren.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (10)
35
if (children.
Count
== 0)
179
int childCount = children.
Count
;
233
int count = children.
Count
;
248
Debug.Assert(children.
Count
> index && index >= 0);
379
int countAllTabs = children.
Count
;
432
int countAllTabs = children.
Count
;
484
int childCount = children.
Count
;
537
int childCount = children.
Count
;
635
int countAllTabs = children.
Count
;
668
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
34
int childCount = children.
Count
;
52
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
53
int count = Children.
Count
;