10 instantiations of ItemInfo
PresentationFramework (10)
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (2)
34
_info = new ItemsControl.
ItemInfo
(item);
92
_info = new ItemsControl.
ItemInfo
(item);
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3513
return new
ItemInfo
(item, container, index).Refresh(ItemContainerGenerator);
3532
return new
ItemInfo
(item, ItemInfo.UnresolvedContainer, -1);
3793
return new
ItemInfo
(Item, Container, Index);
3799
? new
ItemInfo
(info.Item, KeyContainer, -1)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (4)
1648
ItemInfo itemInfo = new
ItemInfo
(null, null, -1);
2039
ItemInfo key = new
ItemInfo
(null, ItemInfo.KeyContainer, -1);
2504
ItemInfo key = new
ItemInfo
(info.Item, ItemInfo.KeyContainer, -1);
2749
Add(new
ItemInfo
(item, container, index));
217 references to ItemInfo
PresentationFramework (217)
src\Framework\System\Windows\Controls\ComboBox.cs (6)
573
ItemInfo
selectedInfo = InternalSelectedInfo;
1096
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
1857
ItemInfo
infoToSelect = null;
1873
ItemInfo
infoToSelect = HighlightedInfo;
1963
private
ItemInfo
HighlightedInfo
2042
private
ItemInfo
_highlightedInfo; // info about the ComboBoxItem which is "highlighted"
src\Framework\System\Windows\Controls\DataGrid.cs (41)
1552
internal void ScrollIntoView(
ItemInfo
info)
1574
ItemInfo
info = (item == null) ? null : NewItemInfo(item);
1578
private void ScrollIntoView(
ItemInfo
info, DataGridColumn column)
1622
ScrollCellIntoView((
ItemInfo
)arguments[0], (DataGridColumn)arguments[1]);
1631
OnBringItemIntoView((
ItemInfo
)arg);
1651
private void ScrollCellIntoView(
ItemInfo
info, DataGridColumn column)
1774
ItemInfo
info = ItemInfoFromContainer(cell.RowOwner);
2638
ItemInfo
currentInfo = CurrentInfo;
2729
ItemInfo
info = null;
3083
internal
ItemInfo
CurrentInfo
4549
ItemInfo
rowInfo = e.RemovedInfos[i];
4557
ItemInfo
rowInfo = e.AddedInfos[i];
4668
private void UpdateSelectionOfCellsInRow(
ItemInfo
rowInfo, bool isSelected)
4708
_pendingInfos = new List<
ItemInfo
>();
4767
ItemInfo
rowInfo = ItemInfoFromContainer(row);
4850
private void MakeFullRowSelection(
ItemInfo
info, bool allowsExtendSelect, bool allowsMinimalSelect)
4895
ItemInfo
itemInfo = _selectedItems[index];
4936
ItemInfo
itemInfo = _selectedItems[index];
5205
private void SelectItem(
ItemInfo
info)
5210
private void SelectItem(
ItemInfo
info, bool selectCells)
5228
private void UnselectItem(
ItemInfo
info)
5246
private void UpdateSelectedItems(
ItemInfo
info, bool add)
5480
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
5614
ItemInfo
currentInfo = CurrentInfo;
5852
ItemInfo
nextInfo = ItemInfoFromIndex(nextRowIndex);
5880
private bool TryDefaultNavigation(KeyEventArgs e,
ItemInfo
currentInfo)
6008
ItemInfo
rowInfo = ItemInfoFromIndex(index);
6104
ItemInfo
info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo;
6136
ItemInfo
currentInfo = CurrentInfo;
6152
ItemInfo
targetInfo = ItemInfoFromIndex(targetIndex);
6183
ItemInfo
startingInfo = currentInfo;
6218
ItemInfo
targetInfo = ItemInfoFromContainer(targetRowElement);
7041
internal DataGridCell TryFindCell(
ItemInfo
info, DataGridColumn column)
7738
List<
ItemInfo
> list = new List<
ItemInfo
>();
7758
List<
ItemInfo
> list = new List<
ItemInfo
>();
7776
ItemsControl.
ItemInfo
info = cellInfo.ItemInfo;
7790
ItemInfo
info = _pendingInfos[i];
8675
private List<
ItemInfo
> _pendingInfos; // Selected items whose index is not yet known
8695
private
ItemInfo
_editingRowInfo = null; // Current editing row info
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (3)
75
internal DataGridCellInfo(ItemsControl.
ItemInfo
info, DataGridColumn column, DataGrid owner)
220
internal ItemsControl.
ItemInfo
ItemInfo
290
private ItemsControl.
ItemInfo
_info;
src\Framework\System\Windows\Controls\ItemsControl.cs (50)
1820
ItemInfo
info = arg as
ItemInfo
;
1829
internal object OnBringItemIntoView(
ItemInfo
info)
1888
internal void PrepareNavigateByLine(
ItemInfo
startingInfo,
1922
internal bool NavigateByLine(
ItemInfo
startingInfo,
1929
internal bool NavigateByLine(
ItemInfo
startingInfo,
2188
internal void PrepareToNavigateByPage(
ItemInfo
startingInfo,
2229
ItemInfo
startingInfo,
2237
ItemInfo
startingInfo,
2549
internal void NavigateToItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs, bool alwaysAtTopOfViewport=false)
2700
private void MakeVisible(
ItemInfo
info, FocusNavigationDirection direction, out FrameworkElement container)
3166
internal
ItemInfo
FocusedInfo
3171
private
ItemInfo
_focusedInfo;
3201
internal virtual bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
3294
internal void DoAutoScroll(
ItemInfo
startingInfo)
3511
internal
ItemInfo
NewItemInfo(object item, DependencyObject container=null, int index=-1)
3517
internal
ItemInfo
ItemInfoFromContainer(DependencyObject container)
3523
internal
ItemInfo
ItemInfoFromIndex(int index)
3530
internal
ItemInfo
NewUnresolvedItemInfo(object item)
3532
return new ItemInfo(item,
ItemInfo
.UnresolvedContainer, -1);
3536
internal DependencyObject ContainerFromItemInfo(
ItemInfo
info)
3557
internal void AdjustItemInfoAfterGeneratorChange(
ItemInfo
info)
3561
ItemInfo
[] a = new
ItemInfo
[]{info};
3567
internal void AdjustItemInfosAfterGeneratorChange(IEnumerable<
ItemInfo
> list, bool claimUniqueContainer)
3572
foreach (
ItemInfo
info in list)
3595
foreach (
ItemInfo
info in list)
3606
foreach (
ItemInfo
info in list)
3644
internal void AdjustItemInfo(NotifyCollectionChangedEventArgs e,
ItemInfo
info)
3648
ItemInfo
[] a = new
ItemInfo
[]{info};
3654
internal void AdjustItemInfos(NotifyCollectionChangedEventArgs e, IEnumerable<
ItemInfo
> list)
3660
foreach (
ItemInfo
info in list)
3672
foreach (
ItemInfo
info in list)
3703
foreach (
ItemInfo
info in list)
3723
foreach (
ItemInfo
info in list)
3733
internal
ItemInfo
LeaseItemInfo(
ItemInfo
info, bool ensureIndex=false)
3750
internal void RefreshItemInfo(
ItemInfo
info)
3791
internal
ItemInfo
Clone()
3796
internal static
ItemInfo
Key(
ItemInfo
info)
3813
ItemInfo
that = o as
ItemInfo
;
3820
internal bool Equals(
ItemInfo
that, bool matchUnresolved)
3853
public static bool operator ==(
ItemInfo
info1,
ItemInfo
info2)
3858
public static bool operator !=(
ItemInfo
info1,
ItemInfo
info2)
3864
internal
ItemInfo
Refresh(ItemContainerGenerator generator)
src\Framework\System\Windows\Controls\ListBox.cs (9)
289
ItemInfo
info = InternalSelectedInfo;
733
private void UpdateAnchorAndActionItem(
ItemInfo
info)
755
ItemInfo
info = ItemInfoFromContainer(listItem);
776
ItemInfo
anchorInfo = AnchorItemInternal;
827
ItemInfo
info = _selectedItems[index];
934
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
969
ItemInfo
info = NewItemInfo(value);
990
internal
ItemInfo
AnchorItemInternal
1012
private
ItemInfo
_anchorItem;
src\Framework\System\Windows\Controls\Menu.cs (1)
314
internal override bool FocusItem(
ItemInfo
info, ItemNavigateArgs itemNavigateArgs)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (92)
482
ItemInfo
info = PendingSelectionByValueField.GetValue(s);
545
ItemInfo
info = NewItemInfo(item, null, index);
1066
ItemInfo
info = NewItemInfo(current, null, index++);
1087
foreach (
ItemInfo
info in _selectedItems)
1176
ItemInfo
info = NewItemInfo(e.NewItems[0], null, e.NewStartingIndex);
1251
ItemInfo
info = ItemInfoFromIndex(i);
1293
ItemInfo
info = NewItemInfo(e.OldItems[0],
ItemInfo
.SentinelContainer, e.OldStartingIndex);
1467
ItemInfo
info = NewItemInfo(item, UI);
1642
toRemove.Add(userSelectedItems[i],
ItemInfo
.SentinelContainer, ~i);
1648
ItemInfo
itemInfo = new ItemInfo(null, null, -1);
1649
foreach (
ItemInfo
e in _selectedItems)
1797
private void InvokeSelectionChanged(List<
ItemInfo
> unselectedInfos, List<
ItemInfo
> selectedInfos)
1813
private bool InfoGetIsSelected(
ItemInfo
info)
1836
private void ItemSetIsSelected(
ItemInfo
info, bool value)
1842
if (container != null && container !=
ItemInfo
.RemovedContainer)
2021
foreach (
ItemInfo
info in _selectedItems)
2039
ItemInfo
key = new ItemInfo(null,
ItemInfo
.KeyContainer, -1);
2051
ItemInfo
info = _selectedItems.FindMatch(key);
2098
foreach (
ItemInfo
info in _selectedItems)
2107
info.Container =
ItemInfo
.RemovedContainer;
2185
internal
ItemInfo
InternalSelectedInfo
2288
private static readonly UncommonField<
ItemInfo
> PendingSelectionByValueField = new UncommonField<
ItemInfo
>();
2343
List<
ItemInfo
> unselected = new List<
ItemInfo
>();
2344
List<
ItemInfo
> selected = new List<
ItemInfo
>();
2387
ItemInfo
selectedItem = _owner._selectedItems[0];
2390
foreach (
ItemInfo
info in _owner._selectedItems)
2402
private void CreateDeltaSelectionChange(List<
ItemInfo
> unselectedItems, List<
ItemInfo
> selectedItems)
2406
ItemInfo
info = _toDeferSelect[i];
2424
foreach (
ItemInfo
info in _toUnselect)
2441
foreach (
ItemInfo
info in _toUnselect)
2445
ItemInfo
match = _owner._selectedItems.FindMatch(
ItemInfo
.Key(info));
2463
List<
ItemInfo
> toRemove = (_toSelect.UnresolvedCount > 0)
2464
? new List<
ItemInfo
>() : null;
2466
foreach (
ItemInfo
info in _toSelect)
2486
foreach (
ItemInfo
info in toRemove)
2503
ItemInfo
info = _owner.NewItemInfo(_owner.Items[index], null, index);
2504
ItemInfo
key = new ItemInfo(info.Item,
ItemInfo
.KeyContainer, -1);
2548
internal bool Select(
ItemInfo
info, bool assumeInItemsCollection)
2569
ItemInfo
key =
ItemInfo
.Key(info);
2589
foreach (
ItemInfo
item in _toSelect)
2605
internal bool Unselect(
ItemInfo
info)
2611
ItemInfo
key =
ItemInfo
.Key(info);
2677
internal void SelectJustThisItem(
ItemInfo
info, bool assumeInItemsCollection)
2722
internal class InternalSelectedItemsStorage : IEnumerable<
ItemInfo
>
2725
internal InternalSelectedItemsStorage(int capacity, IEqualityComparer<
ItemInfo
> equalityComparer)
2728
_list = new List<
ItemInfo
>(capacity);
2729
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(capacity, equalityComparer);
2732
internal InternalSelectedItemsStorage(InternalSelectedItemsStorage collection, IEqualityComparer<
ItemInfo
> equalityComparer=null)
2736
_list = new List<
ItemInfo
>(collection._list);
2740
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(collection._set, _equalityComparer);
2752
public void Add(
ItemInfo
info)
2764
public bool Remove(
ItemInfo
e)
2770
ItemInfo
realInfo;
2780
realInfo.Container =
ItemInfo
.RemovedContainer;
2803
private bool RemoveFromList(
ItemInfo
e)
2815
public bool Contains(
ItemInfo
e)
2827
public
ItemInfo
this[int index]
2878
ItemInfo
info = _list[i];
2896
IEnumerator<
ItemInfo
> IEnumerable<
ItemInfo
>.GetEnumerator()
2917
_set = new Dictionary<
ItemInfo
,
ItemInfo
>(_list.Count);
2930
public
ItemInfo
FindMatch(
ItemInfo
info)
2932
ItemInfo
result;
2951
private int IndexInList(
ItemInfo
info)
2953
return _list.FindIndex( (
ItemInfo
x) => { return _equalityComparer.Equals(info, x); } );
2957
private int LastIndexInList(
ItemInfo
info)
2959
return _list.FindLastIndex( (
ItemInfo
x) => { return _equalityComparer.Equals(info, x); } );
2962
private List<
ItemInfo
> _list;
2963
private Dictionary<
ItemInfo
,
ItemInfo
> _set;
2964
private IEqualityComparer<
ItemInfo
> _equalityComparer;
3009
private class ItemInfoEqualityComparer : IEqualityComparer<
ItemInfo
>
3016
bool IEqualityComparer<
ItemInfo
>.Equals(
ItemInfo
x,
ItemInfo
y)
3023
int IEqualityComparer<
ItemInfo
>.GetHashCode(
ItemInfo
x)
src\Framework\System\Windows\Controls\SelectedItemCollection.cs (3)
50
foreach (ItemsControl.
ItemInfo
current in _selector._selectedItems)
231
internal void Add(ItemsControl.
ItemInfo
info)
244
internal void Remove(ItemsControl.
ItemInfo
info)
src\Framework\System\Windows\Controls\SelectionChangedEventArgs.cs (6)
51
internal SelectionChangedEventArgs(List<ItemsControl.
ItemInfo
> unselectedInfos, List<ItemsControl.
ItemInfo
> selectedInfos)
98
internal List<ItemsControl.
ItemInfo
> RemovedInfos
106
internal List<ItemsControl.
ItemInfo
> AddedInfos
134
private List<ItemsControl.
ItemInfo
> _addedInfos;
135
private List<ItemsControl.
ItemInfo
> _removedInfos;
src\Framework\System\Windows\Controls\TreeView.cs (1)
709
ItemInfo
startingInfo = (parentItemsControl != null)
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
694
ItemInfo
startingInfo = (parentItemsControl != null)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1331
protected override DataGridCellInfo CreateCellInfo(ItemsControl.
ItemInfo
rowInfo, DataGridColumn column, DataGrid owner)
1621
ItemsControl.
ItemInfo
rowInfo = owner.ItemInfoFromIndex(rowIndex);
1645
ItemsControl.
ItemInfo
rowInfo = _owner.ItemInfoFromIndex(rowIndex);
1658
protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.
ItemInfo
rowInfo, DataGridColumn column, DataGrid owner)