10 instantiations of ItemInfo
PresentationFramework (10)
System\Windows\Controls\DataGridCellInfo.cs (2)
30_info = new ItemsControl.ItemInfo(item); 85_info = new ItemsControl.ItemInfo(item);
System\Windows\Controls\ItemsControl.cs (4)
3582return new ItemInfo(item, container, index).Refresh(ItemContainerGenerator); 3601return new ItemInfo(item, ItemInfo.UnresolvedContainer, -1); 3861return new ItemInfo(Item, Container, Index); 3867? new ItemInfo(info.Item, KeyContainer, -1)
System\Windows\Controls\Primitives\Selector.cs (4)
1628ItemInfo itemInfo = new ItemInfo(null, null, -1); 1994ItemInfo key = new ItemInfo(null, ItemInfo.KeyContainer, -1); 2459ItemInfo key = new ItemInfo(info.Item, ItemInfo.KeyContainer, -1); 2702Add(new ItemInfo(item, container, index));
217 references to ItemInfo
PresentationFramework (217)
System\Windows\Controls\ComboBox.cs (6)
572ItemInfo selectedInfo = InternalSelectedInfo; 1094internal override bool FocusItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs) 1854ItemInfo infoToSelect = null; 1870ItemInfo infoToSelect = HighlightedInfo; 1955private ItemInfo HighlightedInfo 2034private ItemInfo _highlightedInfo; // info about the ComboBoxItem which is "highlighted"
System\Windows\Controls\DataGrid.cs (41)
1548internal void ScrollIntoView(ItemInfo info) 1570ItemInfo info = (item == null) ? null : NewItemInfo(item); 1574private void ScrollIntoView(ItemInfo info, DataGridColumn column) 1618ScrollCellIntoView((ItemInfo)arguments[0], (DataGridColumn)arguments[1]); 1627OnBringItemIntoView((ItemInfo)arg); 1647private void ScrollCellIntoView(ItemInfo info, DataGridColumn column) 1770ItemInfo info = ItemInfoFromContainer(cell.RowOwner); 2633ItemInfo currentInfo = CurrentInfo; 2724ItemInfo info = null; 3078internal ItemInfo CurrentInfo 4544ItemInfo rowInfo = e.RemovedInfos[i]; 4552ItemInfo rowInfo = e.AddedInfos[i]; 4663private void UpdateSelectionOfCellsInRow(ItemInfo rowInfo, bool isSelected) 4703_pendingInfos = new List<ItemInfo>(); 4762ItemInfo rowInfo = ItemInfoFromContainer(row); 4845private void MakeFullRowSelection(ItemInfo info, bool allowsExtendSelect, bool allowsMinimalSelect) 4890ItemInfo itemInfo = _selectedItems[index]; 4931ItemInfo itemInfo = _selectedItems[index]; 5200private void SelectItem(ItemInfo info) 5205private void SelectItem(ItemInfo info, bool selectCells) 5223private void UnselectItem(ItemInfo info) 5241private void UpdateSelectedItems(ItemInfo info, bool add) 5475internal override bool FocusItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs) 5609ItemInfo currentInfo = CurrentInfo; 5847ItemInfo nextInfo = ItemInfoFromIndex(nextRowIndex); 5875private bool TryDefaultNavigation(KeyEventArgs e, ItemInfo currentInfo) 6003ItemInfo rowInfo = ItemInfoFromIndex(index); 6099ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo; 6131ItemInfo currentInfo = CurrentInfo; 6147ItemInfo targetInfo = ItemInfoFromIndex(targetIndex); 6178ItemInfo startingInfo = currentInfo; 6213ItemInfo targetInfo = ItemInfoFromContainer(targetRowElement); 7038internal DataGridCell TryFindCell(ItemInfo info, DataGridColumn column) 7735List<ItemInfo> list = new List<ItemInfo>(); 7755List<ItemInfo> list = new List<ItemInfo>(); 7773ItemsControl.ItemInfo info = cellInfo.ItemInfo; 7787ItemInfo info = _pendingInfos[i]; 8648private List<ItemInfo> _pendingInfos; // Selected items whose index is not yet known 8668private ItemInfo _editingRowInfo = null; // Current editing row info
System\Windows\Controls\DataGridCellInfo.cs (3)
68internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 213internal ItemsControl.ItemInfo ItemInfo 283private ItemsControl.ItemInfo _info;
System\Windows\Controls\ItemsControl.cs (50)
1817ItemInfo info = arg as ItemInfo; 1826internal object OnBringItemIntoView(ItemInfo info) 1885internal void PrepareNavigateByLine(ItemInfo startingInfo, 1919internal bool NavigateByLine(ItemInfo startingInfo, 1926internal bool NavigateByLine(ItemInfo startingInfo, 2185internal void PrepareToNavigateByPage(ItemInfo startingInfo, 2226ItemInfo startingInfo, 2234ItemInfo startingInfo, 2546internal void NavigateToItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs, bool alwaysAtTopOfViewport=false) 2697private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 3235internal ItemInfo FocusedInfo 3240private ItemInfo _focusedInfo; 3270internal virtual bool FocusItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs) 3363internal void DoAutoScroll(ItemInfo startingInfo) 3580internal ItemInfo NewItemInfo(object item, DependencyObject container=null, int index=-1) 3586internal ItemInfo ItemInfoFromContainer(DependencyObject container) 3592internal ItemInfo ItemInfoFromIndex(int index) 3599internal ItemInfo NewUnresolvedItemInfo(object item) 3601return new ItemInfo(item, ItemInfo.UnresolvedContainer, -1); 3605internal DependencyObject ContainerFromItemInfo(ItemInfo info) 3626internal void AdjustItemInfoAfterGeneratorChange(ItemInfo info) 3630ItemInfo[] a = new ItemInfo[]{info}; 3636internal void AdjustItemInfosAfterGeneratorChange(IEnumerable<ItemInfo> list, bool claimUniqueContainer) 3641foreach (ItemInfo info in list) 3664foreach (ItemInfo info in list) 3675foreach (ItemInfo info in list) 3712internal void AdjustItemInfo(NotifyCollectionChangedEventArgs e, ItemInfo info) 3716ItemInfo[] a = new ItemInfo[]{info}; 3722internal void AdjustItemInfos(NotifyCollectionChangedEventArgs e, IEnumerable<ItemInfo> list) 3728foreach (ItemInfo info in list) 3740foreach (ItemInfo info in list) 3771foreach (ItemInfo info in list) 3791foreach (ItemInfo info in list) 3801internal ItemInfo LeaseItemInfo(ItemInfo info, bool ensureIndex=false) 3818internal void RefreshItemInfo(ItemInfo info) 3859internal ItemInfo Clone() 3864internal static ItemInfo Key(ItemInfo info) 3881ItemInfo that = o as ItemInfo; 3888internal bool Equals(ItemInfo that, bool matchUnresolved) 3921public static bool operator ==(ItemInfo info1, ItemInfo info2) 3926public static bool operator !=(ItemInfo info1, ItemInfo info2) 3932internal ItemInfo Refresh(ItemContainerGenerator generator)
System\Windows\Controls\ListBox.cs (9)
291ItemInfo info = InternalSelectedInfo; 778private void UpdateAnchorAndActionItem(ItemInfo info) 800ItemInfo info = ItemInfoFromContainer(listItem); 821ItemInfo anchorInfo = AnchorItemInternal; 871ItemInfo info = _selectedItems[index]; 977internal override bool FocusItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs) 1012ItemInfo info = NewItemInfo(value); 1033internal ItemInfo AnchorItemInternal 1055private ItemInfo _anchorItem;
System\Windows\Controls\Menu.cs (1)
293internal override bool FocusItem(ItemInfo info, ItemNavigateArgs itemNavigateArgs)
System\Windows\Controls\Primitives\Selector.cs (92)
472ItemInfo info = PendingSelectionByValueField.GetValue(s); 535ItemInfo info = NewItemInfo(item, null, index); 1056ItemInfo info = NewItemInfo(current, null, index++); 1077foreach (ItemInfo info in _selectedItems) 1158ItemInfo info = NewItemInfo(e.NewItems[0], null, e.NewStartingIndex); 1233ItemInfo info = ItemInfoFromIndex(i); 1275ItemInfo info = NewItemInfo(e.OldItems[0], ItemInfo.SentinelContainer, e.OldStartingIndex); 1449ItemInfo info = NewItemInfo(item, UI); 1622toRemove.Add(userSelectedItems[i], ItemInfo.SentinelContainer, ~i); 1628ItemInfo itemInfo = new ItemInfo(null, null, -1); 1629foreach (ItemInfo e in _selectedItems) 1777private void InvokeSelectionChanged(List<ItemInfo> unselectedInfos, List<ItemInfo> selectedInfos) 1793private bool InfoGetIsSelected(ItemInfo info) 1816private void ItemSetIsSelected(ItemInfo info, bool value) 1822if (container != null && container != ItemInfo.RemovedContainer) 1976foreach (ItemInfo info in _selectedItems) 1994ItemInfo key = new ItemInfo(null, ItemInfo.KeyContainer, -1); 2006ItemInfo info = _selectedItems.FindMatch(key); 2053foreach (ItemInfo info in _selectedItems) 2062info.Container = ItemInfo.RemovedContainer; 2140internal ItemInfo InternalSelectedInfo 2243private static readonly UncommonField<ItemInfo> PendingSelectionByValueField = new UncommonField<ItemInfo>(); 2298List<ItemInfo> unselected = new List<ItemInfo>(); 2299List<ItemInfo> selected = new List<ItemInfo>(); 2342ItemInfo selectedItem = _owner._selectedItems[0]; 2345foreach (ItemInfo info in _owner._selectedItems) 2357private void CreateDeltaSelectionChange(List<ItemInfo> unselectedItems, List<ItemInfo> selectedItems) 2361ItemInfo info = _toDeferSelect[i]; 2379foreach (ItemInfo info in _toUnselect) 2396foreach (ItemInfo info in _toUnselect) 2400ItemInfo match = _owner._selectedItems.FindMatch(ItemInfo.Key(info)); 2418List<ItemInfo> toRemove = (_toSelect.UnresolvedCount > 0) 2419? new List<ItemInfo>() : null; 2421foreach (ItemInfo info in _toSelect) 2441foreach (ItemInfo info in toRemove) 2458ItemInfo info = _owner.NewItemInfo(_owner.Items[index], null, index); 2459ItemInfo key = new ItemInfo(info.Item, ItemInfo.KeyContainer, -1); 2503internal bool Select(ItemInfo info, bool assumeInItemsCollection) 2524ItemInfo key = ItemInfo.Key(info); 2544foreach (ItemInfo item in _toSelect) 2560internal bool Unselect(ItemInfo info) 2566ItemInfo key = ItemInfo.Key(info); 2631internal void SelectJustThisItem(ItemInfo info, bool assumeInItemsCollection) 2676internal class InternalSelectedItemsStorage : IEnumerable<ItemInfo> 2678internal InternalSelectedItemsStorage(int capacity, IEqualityComparer<ItemInfo> equalityComparer) 2681_list = new List<ItemInfo>(capacity); 2682_set = new Dictionary<ItemInfo, ItemInfo>(capacity, equalityComparer); 2685internal InternalSelectedItemsStorage(InternalSelectedItemsStorage collection, IEqualityComparer<ItemInfo> equalityComparer=null) 2689_list = new List<ItemInfo>(collection._list); 2693_set = new Dictionary<ItemInfo, ItemInfo>(collection._set, _equalityComparer); 2705public void Add(ItemInfo info) 2717public bool Remove(ItemInfo e) 2723ItemInfo realInfo; 2733realInfo.Container = ItemInfo.RemovedContainer; 2756private bool RemoveFromList(ItemInfo e) 2768public bool Contains(ItemInfo e) 2780public ItemInfo this[int index] 2831ItemInfo info = _list[i]; 2849IEnumerator<ItemInfo> IEnumerable<ItemInfo>.GetEnumerator() 2870_set = new Dictionary<ItemInfo, ItemInfo>(_list.Count); 2883public ItemInfo FindMatch(ItemInfo info) 2885ItemInfo result; 2904private int IndexInList(ItemInfo info) 2906return _list.FindIndex( (ItemInfo x) => { return _equalityComparer.Equals(info, x); } ); 2910private int LastIndexInList(ItemInfo info) 2912return _list.FindLastIndex( (ItemInfo x) => { return _equalityComparer.Equals(info, x); } ); 2915private List<ItemInfo> _list; 2916private Dictionary<ItemInfo, ItemInfo> _set; 2917private IEqualityComparer<ItemInfo> _equalityComparer; 2962private class ItemInfoEqualityComparer : IEqualityComparer<ItemInfo> 2969bool IEqualityComparer<ItemInfo>.Equals(ItemInfo x, ItemInfo y) 2976int IEqualityComparer<ItemInfo>.GetHashCode(ItemInfo x)
System\Windows\Controls\SelectedItemCollection.cs (3)
43foreach (ItemsControl.ItemInfo current in _selector._selectedItems) 224internal void Add(ItemsControl.ItemInfo info) 237internal void Remove(ItemsControl.ItemInfo info)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
52internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 99internal List<ItemsControl.ItemInfo> RemovedInfos 107internal List<ItemsControl.ItemInfo> AddedInfos 135private List<ItemsControl.ItemInfo> _addedInfos; 136private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TreeView.cs (1)
707ItemInfo startingInfo = (parentItemsControl != null)
System\Windows\Controls\TreeViewItem.cs (1)
693ItemInfo startingInfo = (parentItemsControl != null)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1328protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1618ItemsControl.ItemInfo rowInfo = owner.ItemInfoFromIndex(rowIndex); 1642ItemsControl.ItemInfo rowInfo = _owner.ItemInfoFromIndex(rowIndex); 1655protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)