10 instantiations of ItemInfo
PresentationFramework (10)
System\Windows\Controls\DataGridCellInfo.cs (2)
25
_info = new ItemsControl.
ItemInfo
(item);
80
_info = new ItemsControl.
ItemInfo
(item);
System\Windows\Controls\ItemsControl.cs (4)
3573
return new
ItemInfo
(item, container, index).Refresh(ItemContainerGenerator);
3592
return new
ItemInfo
(item, ItemInfo.UnresolvedContainer, -1);
3852
return new
ItemInfo
(Item, Container, Index);
3858
? new
ItemInfo
(info.Item, KeyContainer, -1)
System\Windows\Controls\Primitives\Selector.cs (4)
1619
ItemInfo itemInfo = new
ItemInfo
(null, null, -1);
1985
ItemInfo key = new
ItemInfo
(null, ItemInfo.KeyContainer, -1);
2450
ItemInfo key = new
ItemInfo
(info.Item, ItemInfo.KeyContainer, -1);
2693
Add(new
ItemInfo
(item, container, index));
217 references to ItemInfo
PresentationFramework (217)
System\Windows\Controls\ComboBox.cs (6)
562
ItemInfo
selectedInfo = InternalSelectedInfo;
1084
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
1844
ItemInfo
infoToSelect = null;
1860
ItemInfo
infoToSelect = HighlightedInfo;
1945
private
ItemInfo
HighlightedInfo
2024
private
ItemInfo
_highlightedInfo; // info about the ComboBoxItem which is "highlighted"
System\Windows\Controls\DataGrid.cs (41)
1545
internal void ScrollIntoView(
ItemInfo
info)
1567
ItemInfo
info = (item == null) ? null : NewItemInfo(item);
1571
private void ScrollIntoView(
ItemInfo
info, DataGridColumn column)
1615
ScrollCellIntoView((
ItemInfo
)arguments[0], (DataGridColumn)arguments[1]);
1624
OnBringItemIntoView((
ItemInfo
)arg);
1644
private void ScrollCellIntoView(
ItemInfo
info, DataGridColumn column)
1767
ItemInfo
info = ItemInfoFromContainer(cell.RowOwner);
2630
ItemInfo
currentInfo = CurrentInfo;
2721
ItemInfo
info = null;
3075
internal
ItemInfo
CurrentInfo
4541
ItemInfo
rowInfo = e.RemovedInfos[i];
4549
ItemInfo
rowInfo = e.AddedInfos[i];
4660
private void UpdateSelectionOfCellsInRow(
ItemInfo
rowInfo, bool isSelected)
4700
_pendingInfos = new List<
ItemInfo
>();
4759
ItemInfo
rowInfo = ItemInfoFromContainer(row);
4842
private void MakeFullRowSelection(
ItemInfo
info, bool allowsExtendSelect, bool allowsMinimalSelect)
4887
ItemInfo
itemInfo = _selectedItems[index];
4928
ItemInfo
itemInfo = _selectedItems[index];
5197
private void SelectItem(
ItemInfo
info)
5202
private void SelectItem(
ItemInfo
info, bool selectCells)
5220
private void UnselectItem(
ItemInfo
info)
5238
private void UpdateSelectedItems(
ItemInfo
info, bool add)
5472
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
5606
ItemInfo
currentInfo = CurrentInfo;
5844
ItemInfo
nextInfo = ItemInfoFromIndex(nextRowIndex);
5872
private bool TryDefaultNavigation(KeyEventArgs e,
ItemInfo
currentInfo)
6000
ItemInfo
rowInfo = ItemInfoFromIndex(index);
6096
ItemInfo
info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo;
6128
ItemInfo
currentInfo = CurrentInfo;
6144
ItemInfo
targetInfo = ItemInfoFromIndex(targetIndex);
6175
ItemInfo
startingInfo = currentInfo;
6210
ItemInfo
targetInfo = ItemInfoFromContainer(targetRowElement);
7035
internal DataGridCell TryFindCell(
ItemInfo
info, DataGridColumn column)
7732
List<
ItemInfo
> list = new List<
ItemInfo
>();
7752
List<
ItemInfo
> list = new List<
ItemInfo
>();
7770
ItemsControl.
ItemInfo
info = cellInfo.ItemInfo;
7784
ItemInfo
info = _pendingInfos[i];
8645
private List<
ItemInfo
> _pendingInfos; // Selected items whose index is not yet known
8665
private
ItemInfo
_editingRowInfo = null; // Current editing row info
System\Windows\Controls\DataGridCellInfo.cs (3)
63
internal DataGridCellInfo(ItemsControl.
ItemInfo
info, DataGridColumn column, DataGrid owner)
208
internal ItemsControl.
ItemInfo
ItemInfo
278
private ItemsControl.
ItemInfo
_info;
System\Windows\Controls\ItemsControl.cs (50)
1808
ItemInfo
info = arg as
ItemInfo
;
1817
internal object OnBringItemIntoView(
ItemInfo
info)
1876
internal void PrepareNavigateByLine(
ItemInfo
startingInfo,
1910
internal bool NavigateByLine(
ItemInfo
startingInfo,
1917
internal bool NavigateByLine(
ItemInfo
startingInfo,
2176
internal void PrepareToNavigateByPage(
ItemInfo
startingInfo,
2217
ItemInfo
startingInfo,
2225
ItemInfo
startingInfo,
2537
internal void NavigateToItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs, bool alwaysAtTopOfViewport=false)
2688
private void MakeVisible(
ItemInfo
info, FocusNavigationDirection direction, out FrameworkElement container)
3226
internal
ItemInfo
FocusedInfo
3231
private
ItemInfo
_focusedInfo;
3261
internal virtual bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
3354
internal void DoAutoScroll(
ItemInfo
startingInfo)
3571
internal
ItemInfo
NewItemInfo(object item, DependencyObject container=null, int index=-1)
3577
internal
ItemInfo
ItemInfoFromContainer(DependencyObject container)
3583
internal
ItemInfo
ItemInfoFromIndex(int index)
3590
internal
ItemInfo
NewUnresolvedItemInfo(object item)
3592
return new ItemInfo(item,
ItemInfo
.UnresolvedContainer, -1);
3596
internal DependencyObject ContainerFromItemInfo(
ItemInfo
info)
3617
internal void AdjustItemInfoAfterGeneratorChange(
ItemInfo
info)
3621
ItemInfo
[] a = new
ItemInfo
[]{info};
3627
internal void AdjustItemInfosAfterGeneratorChange(IEnumerable<
ItemInfo
> list, bool claimUniqueContainer)
3632
foreach (
ItemInfo
info in list)
3655
foreach (
ItemInfo
info in list)
3666
foreach (
ItemInfo
info in list)
3703
internal void AdjustItemInfo(NotifyCollectionChangedEventArgs e,
ItemInfo
info)
3707
ItemInfo
[] a = new
ItemInfo
[]{info};
3713
internal void AdjustItemInfos(NotifyCollectionChangedEventArgs e, IEnumerable<
ItemInfo
> list)
3719
foreach (
ItemInfo
info in list)
3731
foreach (
ItemInfo
info in list)
3762
foreach (
ItemInfo
info in list)
3782
foreach (
ItemInfo
info in list)
3792
internal
ItemInfo
LeaseItemInfo(
ItemInfo
info, bool ensureIndex=false)
3809
internal void RefreshItemInfo(
ItemInfo
info)
3850
internal
ItemInfo
Clone()
3855
internal static
ItemInfo
Key(
ItemInfo
info)
3872
ItemInfo
that = o as
ItemInfo
;
3879
internal bool Equals(
ItemInfo
that, bool matchUnresolved)
3912
public static bool operator ==(
ItemInfo
info1,
ItemInfo
info2)
3917
public static bool operator !=(
ItemInfo
info1,
ItemInfo
info2)
3923
internal
ItemInfo
Refresh(ItemContainerGenerator generator)
System\Windows\Controls\ListBox.cs (9)
285
ItemInfo
info = InternalSelectedInfo;
772
private void UpdateAnchorAndActionItem(
ItemInfo
info)
794
ItemInfo
info = ItemInfoFromContainer(listItem);
815
ItemInfo
anchorInfo = AnchorItemInternal;
865
ItemInfo
info = _selectedItems[index];
971
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
1006
ItemInfo
info = NewItemInfo(value);
1027
internal
ItemInfo
AnchorItemInternal
1049
private
ItemInfo
_anchorItem;
System\Windows\Controls\Menu.cs (1)
283
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
System\Windows\Controls\Primitives\Selector.cs (92)
463
ItemInfo
info = PendingSelectionByValueField.GetValue(s);
526
ItemInfo
info = NewItemInfo(item, null, index);
1047
ItemInfo
info = NewItemInfo(current, null, index++);
1068
foreach (
ItemInfo
info in _selectedItems)
1149
ItemInfo
info = NewItemInfo(e.NewItems[0], null, e.NewStartingIndex);
1224
ItemInfo
info = ItemInfoFromIndex(i);
1266
ItemInfo
info = NewItemInfo(e.OldItems[0],
ItemInfo
.SentinelContainer, e.OldStartingIndex);
1440
ItemInfo
info = NewItemInfo(item, UI);
1613
toRemove.Add(userSelectedItems[i],
ItemInfo
.SentinelContainer, ~i);
1619
ItemInfo
itemInfo = new ItemInfo(null, null, -1);
1620
foreach (
ItemInfo
e in _selectedItems)
1768
private void InvokeSelectionChanged(List<
ItemInfo
> unselectedInfos, List<
ItemInfo
> selectedInfos)
1784
private bool InfoGetIsSelected(
ItemInfo
info)
1807
private void ItemSetIsSelected(
ItemInfo
info, bool value)
1813
if (container != null && container !=
ItemInfo
.RemovedContainer)
1967
foreach (
ItemInfo
info in _selectedItems)
1985
ItemInfo
key = new ItemInfo(null,
ItemInfo
.KeyContainer, -1);
1997
ItemInfo
info = _selectedItems.FindMatch(key);
2044
foreach (
ItemInfo
info in _selectedItems)
2053
info.Container =
ItemInfo
.RemovedContainer;
2131
internal
ItemInfo
InternalSelectedInfo
2234
private static readonly UncommonField<
ItemInfo
> PendingSelectionByValueField = new UncommonField<
ItemInfo
>();
2289
List<
ItemInfo
> unselected = new List<
ItemInfo
>();
2290
List<
ItemInfo
> selected = new List<
ItemInfo
>();
2333
ItemInfo
selectedItem = _owner._selectedItems[0];
2336
foreach (
ItemInfo
info in _owner._selectedItems)
2348
private void CreateDeltaSelectionChange(List<
ItemInfo
> unselectedItems, List<
ItemInfo
> selectedItems)
2352
ItemInfo
info = _toDeferSelect[i];
2370
foreach (
ItemInfo
info in _toUnselect)
2387
foreach (
ItemInfo
info in _toUnselect)
2391
ItemInfo
match = _owner._selectedItems.FindMatch(
ItemInfo
.Key(info));
2409
List<
ItemInfo
> toRemove = (_toSelect.UnresolvedCount > 0)
2410
? new List<
ItemInfo
>() : null;
2412
foreach (
ItemInfo
info in _toSelect)
2432
foreach (
ItemInfo
info in toRemove)
2449
ItemInfo
info = _owner.NewItemInfo(_owner.Items[index], null, index);
2450
ItemInfo
key = new ItemInfo(info.Item,
ItemInfo
.KeyContainer, -1);
2494
internal bool Select(
ItemInfo
info, bool assumeInItemsCollection)
2515
ItemInfo
key =
ItemInfo
.Key(info);
2535
foreach (
ItemInfo
item in _toSelect)
2551
internal bool Unselect(
ItemInfo
info)
2557
ItemInfo
key =
ItemInfo
.Key(info);
2622
internal void SelectJustThisItem(
ItemInfo
info, bool assumeInItemsCollection)
2667
internal class InternalSelectedItemsStorage : IEnumerable<
ItemInfo
>
2669
internal InternalSelectedItemsStorage(int capacity, IEqualityComparer<
ItemInfo
> equalityComparer)
2672
_list = new List<
ItemInfo
>(capacity);
2673
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(capacity, equalityComparer);
2676
internal InternalSelectedItemsStorage(InternalSelectedItemsStorage collection, IEqualityComparer<
ItemInfo
> equalityComparer=null)
2680
_list = new List<
ItemInfo
>(collection._list);
2684
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(collection._set, _equalityComparer);
2696
public void Add(
ItemInfo
info)
2708
public bool Remove(
ItemInfo
e)
2714
ItemInfo
realInfo;
2724
realInfo.Container =
ItemInfo
.RemovedContainer;
2747
private bool RemoveFromList(
ItemInfo
e)
2759
public bool Contains(
ItemInfo
e)
2771
public
ItemInfo
this[int index]
2822
ItemInfo
info = _list[i];
2840
IEnumerator<
ItemInfo
> IEnumerable<
ItemInfo
>.GetEnumerator()
2861
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(_list.Count);
2874
public
ItemInfo
FindMatch(
ItemInfo
info)
2876
ItemInfo
result;
2895
private int IndexInList(
ItemInfo
info)
2897
return _list.FindIndex( (
ItemInfo
x) => { return _equalityComparer.Equals(info, x); } );
2901
private int LastIndexInList(
ItemInfo
info)
2903
return _list.FindLastIndex( (
ItemInfo
x) => { return _equalityComparer.Equals(info, x); } );
2906
private List<
ItemInfo
> _list;
2907
private Dictionary<
ItemInfo
,
ItemInfo
> _set;
2908
private IEqualityComparer<
ItemInfo
> _equalityComparer;
2953
private class ItemInfoEqualityComparer : IEqualityComparer<
ItemInfo
>
2960
bool IEqualityComparer<
ItemInfo
>.Equals(
ItemInfo
x,
ItemInfo
y)
2967
int IEqualityComparer<
ItemInfo
>.GetHashCode(
ItemInfo
x)
System\Windows\Controls\SelectedItemCollection.cs (3)
41
foreach (ItemsControl.
ItemInfo
current in _selector._selectedItems)
222
internal void Add(ItemsControl.
ItemInfo
info)
235
internal void Remove(ItemsControl.
ItemInfo
info)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
48
internal SelectionChangedEventArgs(List<ItemsControl.
ItemInfo
> unselectedInfos, List<ItemsControl.
ItemInfo
> selectedInfos)
95
internal List<ItemsControl.
ItemInfo
> RemovedInfos
103
internal List<ItemsControl.
ItemInfo
> AddedInfos
131
private List<ItemsControl.
ItemInfo
> _addedInfos;
132
private List<ItemsControl.
ItemInfo
> _removedInfos;
System\Windows\Controls\TreeView.cs (1)
702
ItemInfo
startingInfo = (parentItemsControl != null)
System\Windows\Controls\TreeViewItem.cs (1)
689
ItemInfo
startingInfo = (parentItemsControl != null)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1324
protected override DataGridCellInfo CreateCellInfo(ItemsControl.
ItemInfo
rowInfo, DataGridColumn column, DataGrid owner)
1614
ItemsControl.
ItemInfo
rowInfo = owner.ItemInfoFromIndex(rowIndex);
1638
ItemsControl.
ItemInfo
rowInfo = _owner.ItemInfoFromIndex(rowIndex);
1651
protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.
ItemInfo
rowInfo, DataGridColumn column, DataGrid owner)