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