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