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)
375
if ( rootInkCanvas.Children.
Count
!= 0 )
377
List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.
Count
);
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
340
if ( this.InkCanvas.Children.
Count
== 0 )
345
for (int x = 0; x < this.InkCanvas.Children.
Count
; x++)
System\Windows\Controls\DataGrid.cs (2)
6382
for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.
Count
- 1); i >= 0; i--)
6431
for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.
Count
- 1); i >= 0; i--)
System\Windows\Controls\DataGridCellsPanel.cs (7)
701
if (isRecycled && visualTreeIndex < children.
Count
&& children[visualTreeIndex] == container)
707
if (visualTreeIndex < children.
Count
)
768
for (int i = realizedChildIndex; i < children.
Count
; i++)
1175
for (int i = 0; i < children.
Count
; i++)
1955
_realizedChildren = new List<UIElement>(children.
Count
);
1957
for (int i = 0; i < children.
Count
; i++)
2090
if (pos < children.
Count
)
System\Windows\Controls\DockPanel.cs (2)
208
for (int i = 0, count = children.
Count
; i < count; ++i)
265
int totalChildrenCount = children.
Count
;
System\Windows\Controls\Grid.cs (4)
363
for (int i = 0, count = children.
Count
; i < count; ++i)
661
for (int i = 0, count = children.
Count
; i < count; ++i)
873
extData.CellCachesCollection = new CellCache[children.
Count
];
3878
_enumerator2Count = _enumerator2Collection.
Count
;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (8)
581
if (children.
Count
== 0)
592
else if (children.
Count
> 3)
595
int count = children.
Count
- 3;
854
int index = InternalChildren.
Count
- 3 - columnIndex;
855
Debug.Assert(index >= 0 && index < InternalChildren.
Count
, "Error index when GetVisualIndex");
1291
if (columns != null && children.
Count
> columns.Count)
1309
for (int i = 1; i < children.
Count
; i++)
1455
iEnd = InternalChildren.
Count
- 3; // skip the floating header and the indicator.
System\Windows\Controls\GridViewRowPresenter.cs (3)
298
if (((index = column.ActualIndex) >= 0) && (index < InternalChildren.
Count
))
412
if (children.
Count
== columns.Count)
645
for (int i = 0; i < children.
Count
; i++)
System\Windows\Controls\InkCanvas.cs (4)
2728
if ( uiElementCollection.
Count
> 0 )
2732
UIElement[] uiElementArray = new UIElement[uiElementCollection.
Count
];
2733
for ( int i = 0; i < uiElementCollection.
Count
; i++ )
2812
&& (inkCanvas.Strokes.Count > 0 || inkCanvas.Children.
Count
> 0));
System\Windows\Controls\ItemsControl.cs (1)
2467
int count = children.
Count
;
System\Windows\Controls\Panel.cs (4)
192
if (Children != null && Children.
Count
> 0)
364
return _uiElementCollection.
Count
;
635
if ((_uiElementCollection != null) && (_uiElementCollection.
Count
> 0))
986
int count = (_uiElementCollection != null) ? _uiElementCollection.
Count
: 0;
System\Windows\Controls\Primitives\CalendarItem.cs (1)
488
int count = yearViewChildren.
Count
;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
90
if (InternalChildren.
Count
== 0)
114
return _uiElementCollection.
Count
;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
56
int childrenCount = children.
Count
;
114
for (int i = 0; i < children.
Count
; i++)
159
for (int i = 0; i < children.
Count
; i++)
180
arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, children.
Count
);
System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
55
int childrenCount = children.
Count
;
292
for (int i = 0, count = children.
Count
; i < count; ++i)
349
_generatedItemsCollection = new List<UIElement>(children.
Count
);
363
int childrenCount = children.
Count
;
System\Windows\Controls\Primitives\UniformGrid.cs (2)
171
for (int i = 0, count = InternalChildren.
Count
; i < count; ++i)
263
for (int i = 0, count = InternalChildren.
Count
; i < count; ++i)
System\Windows\Controls\Stack.cs (7)
564
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.X, children.
Count
) : 0;
571
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.Y, children.
Count
) : 0;
579
for (int i = 0, count = children.
Count
; i < count; ++i)
627
if (lastViewport == -1) { lastViewport = children.
Count
- 1; }
646
int logicalExtent = children.
Count
;
740
for (int i = 0, count = children.
Count
; i < count; ++i)
829
Debug.Assert(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.
Count
));
System\Windows\Controls\VirtualizingPanel.cs (1)
370
int childrenCount = children.
Count
;
System\Windows\Controls\VirtualizingStackPanel.cs (12)
1175
int count = children.
Count
;
4263
int childrenCount = children.
Count
;
8763
if (isRecycled && visualTreeIndex < children.
Count
&& children[visualTreeIndex] == container)
8769
if (visualTreeIndex < children.
Count
)
8982
if (pos < children.
Count
)
9177
_realizedChildren = new List<UIElement>(children.
Count
);
9179
for (int i = 0; i < children.
Count
; i++)
9223
Debug.Assert(_realizedChildren.Count == children.
Count
, "Realized and visual children must match");
9225
for (int i = 0; i < children.
Count
; i++)
9249
for (int i = realizedChildIndex; i < children.
Count
; i++)
9275
for (int i = 0; i < children.
Count
; i++)
9397
int extraChildren = children.
Count
- pageSize;
System\Windows\Controls\WrapPanel.cs (4)
227
for(int i=0, count = children.
Count
; i<count; i++)
287
for(int i=0, count = children.
Count
; i<count; i++)
322
if(firstInLine < children.
Count
)
324
arrangeLine(accumulatedV, curLineSize.V, firstInLine, children.
Count
, useItemU, itemU);
System\Windows\Documents\FixedPage.cs (5)
122
if (_uiElementCollection.
Count
!= 0)
696
return _uiElementCollection.
Count
;
838
for (int i = 0, n = elementCollection.
Count
; i < n; i++)
872
if (!(currentLevelIndex >= 0 && currentLevelIndex <= this.Children.
Count
))
893
Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.
Count
);
System\Windows\Documents\RubberbandSelector.cs (1)
260
int nChildren = _page.Children.
Count
;
System\Windows\Input\KeyboardNavigation.cs (2)
584
if (_canvasChildren.
Count
== _contentRects.Count)
587
for (int i = 0; i < _canvasChildren.
Count
; i++)
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2427
UIElement[] children = new UIElement[fixedPage.Children.
Count
];
System.Windows.Controls.Ribbon (43)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
363
int childrenCount, endCountForUpdate = children.
Count
;
451
for (int i = 0, count = children.
Count
; i < count; ++i)
593
for (int i = 0, count = children.
Count
; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (2)
325
int childrenCount = children.
Count
;
536
int childrenCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
57
int childCount = children.
Count
;
194
int childCount = children.
Count
;
271
int childCount = children.
Count
;
305
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
145
if (children.
Count
!= _cachedChildCount)
148
_cachedChildCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
205
for (int i = 0; i < children.
Count
; i++)
220
for (int i = 0; i < children.
Count
; i++)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
22
for (int i = 0; i < Children.
Count
; i++)
43
for (int i = 0, count = children.
Count
; i < count; ++i)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (15)
49
RemoveInternalChildRange(0, InternalChildren.
Count
);
70
if (index < InternalChildren.
Count
)
76
int indexInOverflowPanel = index - InternalChildren.
Count
;
188
if (i >= children.
Count
||
192
overflowPanel.Children.
Count
> 0 &&
212
base.RemoveInternalChildRange(i, children.
Count
- i);
223
Debug.Assert(overflowPanel.Children.
Count
>= overflowIndex, "overflowIndex should never get above overflowPanel.Children.Count");
226
overflowPanel.Children.
Count
== overflowIndex ||
275
for (int i = 0, count = children.
Count
; i < count; ++i)
306
Debug.Assert(GeneratedChildren.Count > InternalChildren.
Count
);
307
int numItemsExpectedInOverflowPanel = GeneratedChildren.Count - InternalChildren.
Count
;
308
Debug.Assert(QAT.OverflowPanel.Children.
Count
== numItemsExpectedInOverflowPanel);
312
for (int j = 0; j < InternalChildren.
Count
; j++)
325
for (int k = InternalChildren.
Count
; k < GeneratedChildren.Count; k++)
327
int overflowPanelIndex = k - InternalChildren.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (10)
36
if (children.
Count
== 0)
180
int childCount = children.
Count
;
234
int count = children.
Count
;
249
Debug.Assert(children.
Count
> index && index >= 0);
380
int countAllTabs = children.
Count
;
433
int countAllTabs = children.
Count
;
485
int childCount = children.
Count
;
538
int childCount = children.
Count
;
636
int countAllTabs = children.
Count
;
669
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
35
int childCount = children.
Count
;
53
int childCount = children.
Count
;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
54
int count = Children.
Count
;