18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
672return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 692DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 718DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 734DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2735currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3017SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4600DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4676DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4707MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4740SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 4977_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5154_selectionAnchor = new DataGridCellInfo(cellInfo); 5968SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
125return new DataGridCellInfo(owner, column, item ?? DependencyProperty.UnsetValue); 262get { return new DataGridCellInfo(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1328return new DataGridCellInfo(rowInfo, _removedColumn, owner); 1332return new DataGridCellInfo(_removedItem, column, owner); 1653return new DataGridCellInfo(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
308private DataGridCellItemAutomationPeer GetCellItemPeer(DataGridCellInfo cellInfo) 422foreach (DataGridCellInfo cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
692DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 718DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 734DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2734DataGridCellInfo currentCell = CurrentCell; 2736: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2798DataGridCellInfo currentCell = dataGrid.CurrentCell; 2804dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2841DataGridCellInfo currentCell = dataGrid.CurrentCell; 2847dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2859public DataGridCellInfo CurrentCell 2861get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2869DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2874DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2875DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 2989DataGridCellInfo currentCell = CurrentCell; 3013SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3062DataGridCellInfo currentCell = CurrentCell; 3069currentCell = DataGridCellInfo.Unset; 4101public IList<DataGridCellInfo> SelectedCells 4204foreach (DataGridCellInfo cellInfo in oldItems) 4340internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4600DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4615foreach (DataGridCellInfo cellInfo in cells) 4676DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4736DataGridCellInfo currentCell = CurrentCell; 5006private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 6989internal DataGridCell TryFindCell(DataGridCellInfo info) 7725private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8603private Nullable<DataGridCellInfo> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
89internal DataGridCellInfo(DataGridCellInfo info) 115internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 150if (obj is DataGridCellInfo) 152return EqualsImpl((DataGridCellInfo)obj); 161public static bool operator ==(DataGridCellInfo cell1, DataGridCellInfo cell2) 169public static bool operator !=(DataGridCellInfo cell1, DataGridCellInfo cell2) 174internal bool EqualsImpl(DataGridCellInfo cell) 260internal static DataGridCellInfo Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
20public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells) 34public SelectedCellsChangedEventArgs(ReadOnlyCollection<DataGridCellInfo> addedCells, ReadOnlyCollection<DataGridCellInfo> removedCells) 55public IList<DataGridCellInfo> AddedCells 63public IList<DataGridCellInfo> RemovedCells 68private IList<DataGridCellInfo> _addedCells; 69private IList<DataGridCellInfo> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
11internal class VirtualizedCellInfoCollection : IList<DataGridCellInfo> 62public void Add(DataGridCellInfo cell) 85internal void AddValidatedCell(DataGridCellInfo cell) 122public bool Contains(DataGridCellInfo cell) 200public void CopyTo(DataGridCellInfo[] array, int arrayIndex) 202List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 223public IEnumerator<DataGridCellInfo> GetEnumerator() 231private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<DataGridCellInfo>, IEnumerator 270public DataGridCellInfo Current 279return DataGridCellInfo.Unset; 305public int IndexOf(DataGridCellInfo cell) 330public void Insert(int index, DataGridCellInfo cell) 340public bool Remove(DataGridCellInfo cell) 378public DataGridCellInfo this[int index] 453private bool IsValidCell(DataGridCellInfo cell) 458private bool IsValidPublicCell(DataGridCellInfo cell) 1324protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1448internal void RemoveAllButOne(DataGridCellInfo cellInfo) 1564private void ConvertCellInfoToIndexes(DataGridCellInfo cell, out int rowIndex, out int columnIndex) 1603private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1620return DataGridCellInfo.Unset; 1632private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1642DataGridCellInfo cellInfo = CreateCellInfo(rowInfo, column, _owner); 1651protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)