18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
681return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 701DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 727DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 743DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2755currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3040SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4635DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4714DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4745MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4778SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 5018_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5195_selectionAnchor = new DataGridCellInfo(cellInfo); 6009SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
130return new DataGridCellInfo(owner, column, (item == null) ? DependencyProperty.UnsetValue : item); 267get { return new DataGridCellInfo(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1332return new DataGridCellInfo(rowInfo, _removedColumn, owner); 1336return new DataGridCellInfo(_removedItem, column, owner); 1657return new DataGridCellInfo(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
313private DataGridCellItemAutomationPeer GetCellItemPeer(DataGridCellInfo cellInfo) 451foreach (DataGridCellInfo cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
701DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 727DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 743DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2754DataGridCellInfo currentCell = CurrentCell; 2756: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2818DataGridCellInfo currentCell = dataGrid.CurrentCell; 2824dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2861DataGridCellInfo currentCell = dataGrid.CurrentCell; 2867dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2879public DataGridCellInfo CurrentCell 2881get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2889DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2894DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2895DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 3012DataGridCellInfo currentCell = CurrentCell; 3036SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3085DataGridCellInfo currentCell = CurrentCell; 3092currentCell = DataGridCellInfo.Unset; 4130public IList<DataGridCellInfo> SelectedCells 4233foreach (DataGridCellInfo cellInfo in oldItems) 4372internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4635DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4650foreach (DataGridCellInfo cellInfo in cells) 4714DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4774DataGridCellInfo currentCell = CurrentCell; 5047private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 7032internal DataGridCell TryFindCell(DataGridCellInfo info) 7771private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8649private Nullable<DataGridCellInfo> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
94internal DataGridCellInfo(DataGridCellInfo info) 120internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 155if (obj is DataGridCellInfo) 157return EqualsImpl((DataGridCellInfo)obj); 166public static bool operator ==(DataGridCellInfo cell1, DataGridCellInfo cell2) 174public static bool operator !=(DataGridCellInfo cell1, DataGridCellInfo cell2) 179internal bool EqualsImpl(DataGridCellInfo cell) 265internal static DataGridCellInfo Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
23public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells) 37public SelectedCellsChangedEventArgs(ReadOnlyCollection<DataGridCellInfo> addedCells, ReadOnlyCollection<DataGridCellInfo> removedCells) 58public IList<DataGridCellInfo> AddedCells 66public IList<DataGridCellInfo> RemovedCells 71private IList<DataGridCellInfo> _addedCells; 72private IList<DataGridCellInfo> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
15internal class VirtualizedCellInfoCollection : IList<DataGridCellInfo> 66public void Add(DataGridCellInfo cell) 89internal void AddValidatedCell(DataGridCellInfo cell) 126public bool Contains(DataGridCellInfo cell) 204public void CopyTo(DataGridCellInfo[] array, int arrayIndex) 206List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 227public IEnumerator<DataGridCellInfo> GetEnumerator() 235private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<DataGridCellInfo>, IEnumerator 274public DataGridCellInfo Current 283return DataGridCellInfo.Unset; 309public int IndexOf(DataGridCellInfo cell) 334public void Insert(int index, DataGridCellInfo cell) 344public bool Remove(DataGridCellInfo cell) 382public DataGridCellInfo this[int index] 457private bool IsValidCell(DataGridCellInfo cell) 462private bool IsValidPublicCell(DataGridCellInfo cell) 1328protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1452internal void RemoveAllButOne(DataGridCellInfo cellInfo) 1568private void ConvertCellInfoToIndexes(DataGridCellInfo cell, out int rowIndex, out int columnIndex) 1607private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1624return DataGridCellInfo.Unset; 1636private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1646DataGridCellInfo cellInfo = CreateCellInfo(rowInfo, column, _owner); 1655protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)