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