2 writes to Item
PresentationFramework (2)
System\Windows\Controls\ItemsControl.cs (2)
3841Item = item; 3951Item = item;
47 references to Item
PresentationFramework (47)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (2)
96SelectorItemAutomationPeer peer = FindOrCreateItemAutomationPeer(owner._selectedItems[i].Item) as SelectorItemAutomationPeer; 149SelectorItemAutomationPeer peer = FindOrCreateItemAutomationPeer(owner._selectedItems[0].Item) as SelectorItemAutomationPeer;
System\Windows\Controls\ComboBox.cs (1)
1106index = Items.IndexOf(info.Item);
System\Windows\Controls\DataGrid.cs (10)
1815SetCurrentItem(info.Item); 2633if (SelectedItems.Contains(currentInfo.Item)) 5474object item = info.Item; 5619if (currentInfo.Item == CollectionView.NewItemPlaceholder) 5632if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5633(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 6003if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6150SetCurrentItem(targetInfo.Item); 6215SetCurrentItem(targetInfo.Item); 6744if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) ||
System\Windows\Controls\DataGridCellInfo.cs (2)
134get { return (_info != null) ? _info.Item : null; } 205get { return _column != null || _info.Item != DependencyProperty.UnsetValue; }
System\Windows\Controls\ItemsControl.cs (18)
1899object startingItem = (startingInfo != null) ? startingInfo.Item : null; 1938object startingItem = (startingInfo != null) ? startingInfo.Item : null; 2200object startingItem = (startingInfo != null) ? startingInfo.Item : null; 2246object startingItem = (startingInfo != null) ? startingInfo.Item : null; 2541NavigateToItem(info.Item, info.Index, itemNavigateArgs, alwaysAtTopOfViewport); 3263object item = info.Item; 3608container = ItemContainerGenerator.ContainerFromItem(info.Item); 3639else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3680object item = info.Item; 3798info = NewItemInfo(info.Item); 3801info.Index = Items.IndexOf(info.Item); 3852return new ItemInfo(Item, Container, Index); 3858? new ItemInfo(info.Item, KeyContainer, -1) 3864return (Item != null) ? Item.GetHashCode() : 314159; 3886if (!ItemsControl.EqualsEx(this.Item, that.Item)) 3927Container = generator.ContainerFromItem(Item);
System\Windows\Controls\ListBox.cs (1)
774object item = info.Item;
System\Windows\Controls\Primitives\Selector.cs (11)
1622itemInfo.Reset(e.Item); 1688userSelectedItems.Add(toAdd[i].Item); 1794if (IsItemItsOwnContainerOverride(info.Item)) 1796DependencyObject element = info.Item as DependencyObject; 1825object item = info.Item; 2127return (_selectedItems.Count == 0) ? null : _selectedItems[0].Item; 2150index = Items.IndexOf(_selectedItems[0].Item); 2354if (_owner.Items.Contains(info.Item)) 2450ItemInfo key = new ItemInfo(info.Item, ItemInfo.KeyContainer, -1); 2506if (!_owner.Items.Contains(info.Item)) 2645if (!isSelected && info != null && info.Item != DependencyProperty.UnsetValue)
System\Windows\Controls\SelectionChangedEventArgs.cs (2)
55_removedItems[i] = unselectedInfos[i].Item; 61_addedItems[i] = selectedInfos[i].Item;