30 references to InternalCount
PresentationFramework (30)
System\Windows\Data\ListCollectionView.cs (30)
125
SetCurrent(null,
InternalCount
);
140
if (newPosition <
InternalCount
&& (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder)
197
ArgumentOutOfRangeException.ThrowIfGreaterThan(position,
InternalCount
);
202
object proposedCurrentItem = (0 <= position && position <
InternalCount
) ? InternalItemAt(position) : null;
501
return
InternalCount
;
510
get { return (
InternalCount
== 0); }
571
oldIndex =
InternalCount
- 1;
593
oldIndex =
InternalCount
- 1;
608
newIndex =
InternalCount
;
616
newIndex =
InternalCount
- 1;
805
position = UsesLocalArray ?
InternalCount
- 1 : _newItemIndex;
811
position =
InternalCount
- 2;
853
fromIndex = UsesLocalArray ?
InternalCount
- 1 : _newItemIndex;
859
fromIndex =
InternalCount
- 2;
1094
if (index >=
InternalCount
|| !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index)))
2182
return
InternalCount
- 1;
2192
return
InternalCount
- 1;
2200
return
InternalCount
- 2;
2229
if (index ==
InternalCount
- 1)
2252
if (index ==
InternalCount
- 1)
2256
if (index ==
InternalCount
-2)
2484
get { return (0 <= CurrentPosition && CurrentPosition <
InternalCount
); }
2635
int lastPosition =
InternalCount
- 1; // OK if last is -1
2664
? 0 :
InternalCount
- 1;
2678
? 1 : UsesLocalArray ?
InternalCount
- 2 : index;
2764
return
InternalCount
- 1;
2768
return
InternalCount
- 2;
2818
if (
InternalCount
== 1)
2826
if (newPosition <
InternalCount
)
2834
SetCurrent(null,
InternalCount
);