2 writes to Item
PresentationFramework (2)
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3782
Item
= item;
3892
Item
= item;
47 references to Item
PresentationFramework (47)
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (2)
105
SelectorItemAutomationPeer peer = FindOrCreateItemAutomationPeer(owner._selectedItems[i].
Item
) as SelectorItemAutomationPeer;
158
SelectorItemAutomationPeer peer = FindOrCreateItemAutomationPeer(owner._selectedItems[0].
Item
) as SelectorItemAutomationPeer;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1118
index = Items.IndexOf(info.
Item
);
src\Framework\System\Windows\Controls\DataGrid.cs (10)
1822
SetCurrentItem(info.
Item
);
2641
if (SelectedItems.Contains(currentInfo.
Item
))
5482
object item = info.
Item
;
5627
if (currentInfo.
Item
== CollectionView.NewItemPlaceholder)
5640
if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.
Item
)) ||
5641
(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.
Item
)))
6011
if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.
Item
))
6158
SetCurrentItem(targetInfo.
Item
);
6223
SetCurrentItem(targetInfo.
Item
);
6752
if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.
Item
) ||
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (2)
146
get { return (_info != null) ? _info.
Item
: null; }
217
get { return _column != null || _info.
Item
!= DependencyProperty.UnsetValue; }
src\Framework\System\Windows\Controls\ItemsControl.cs (18)
1911
object startingItem = (startingInfo != null) ? startingInfo.
Item
: null;
1950
object startingItem = (startingInfo != null) ? startingInfo.
Item
: null;
2212
object startingItem = (startingInfo != null) ? startingInfo.
Item
: null;
2258
object startingItem = (startingInfo != null) ? startingInfo.
Item
: null;
2553
NavigateToItem(info.
Item
, info.Index, itemNavigateArgs, alwaysAtTopOfViewport);
3203
object item = info.
Item
;
3548
container = ItemContainerGenerator.ContainerFromItem(info.
Item
);
3579
else if (info.IsRemoved || !ItemsControl.EqualsEx(info.
Item
,
3620
object item = info.
Item
;
3739
info = NewItemInfo(info.
Item
);
3742
info.Index = Items.IndexOf(info.
Item
);
3793
return new ItemInfo(
Item
, Container, Index);
3799
? new ItemInfo(info.
Item
, KeyContainer, -1)
3805
return (
Item
!= null) ?
Item
.GetHashCode() : 314159;
3827
if (!ItemsControl.EqualsEx(this.
Item
, that.
Item
))
3868
Container = generator.ContainerFromItem(
Item
);
src\Framework\System\Windows\Controls\ListBox.cs (1)
735
object item = info.
Item
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (11)
1651
itemInfo.Reset(e.
Item
);
1717
userSelectedItems.Add(toAdd[i].
Item
);
1823
if (IsItemItsOwnContainerOverride(info.
Item
))
1825
DependencyObject element = info.
Item
as DependencyObject;
1854
object item = info.
Item
;
2181
return (_selectedItems.Count == 0) ? null : _selectedItems[0].
Item
;
2204
index = Items.IndexOf(_selectedItems[0].
Item
);
2408
if (_owner.Items.Contains(info.
Item
))
2504
ItemInfo key = new ItemInfo(info.
Item
, ItemInfo.KeyContainer, -1);
2560
if (!_owner.Items.Contains(info.
Item
))
2700
if (!isSelected && info != null && info.
Item
!= DependencyProperty.UnsetValue)
src\Framework\System\Windows\Controls\SelectionChangedEventArgs.cs (2)
58
_removedItems[i] = unselectedInfos[i].
Item
;
64
_addedItems[i] = selectedInfos[i].
Item
;