18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
671return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 691DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 717DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 733DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2722currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3004SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4587DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4663DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4694MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4727SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 4964_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5141_selectionAnchor = new DataGridCellInfo(cellInfo); 5955SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
124return new DataGridCellInfo(owner, column, item ?? DependencyProperty.UnsetValue); 261get { return new DataGridCellInfo(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1327return new DataGridCellInfo(rowInfo, _removedColumn, owner); 1331return new DataGridCellInfo(_removedItem, column, owner); 1652return new DataGridCellInfo(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
307private DataGridCellItemAutomationPeer GetCellItemPeer(DataGridCellInfo cellInfo) 421foreach (DataGridCellInfo cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
691DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 717DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 733DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2721DataGridCellInfo currentCell = CurrentCell; 2723: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2785DataGridCellInfo currentCell = dataGrid.CurrentCell; 2791dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2828DataGridCellInfo currentCell = dataGrid.CurrentCell; 2834dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2846public DataGridCellInfo CurrentCell 2848get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2856DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2861DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2862DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 2976DataGridCellInfo currentCell = CurrentCell; 3000SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3049DataGridCellInfo currentCell = CurrentCell; 3056currentCell = DataGridCellInfo.Unset; 4088public IList<DataGridCellInfo> SelectedCells 4191foreach (DataGridCellInfo cellInfo in oldItems) 4327internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4587DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4602foreach (DataGridCellInfo cellInfo in cells) 4663DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4723DataGridCellInfo currentCell = CurrentCell; 4993private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 6976internal DataGridCell TryFindCell(DataGridCellInfo info) 7712private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8590private Nullable<DataGridCellInfo> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
88internal DataGridCellInfo(DataGridCellInfo info) 114internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 149if (obj is DataGridCellInfo) 151return EqualsImpl((DataGridCellInfo)obj); 160public static bool operator ==(DataGridCellInfo cell1, DataGridCellInfo cell2) 168public static bool operator !=(DataGridCellInfo cell1, DataGridCellInfo cell2) 173internal bool EqualsImpl(DataGridCellInfo cell) 259internal static DataGridCellInfo Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
19public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells) 33public SelectedCellsChangedEventArgs(ReadOnlyCollection<DataGridCellInfo> addedCells, ReadOnlyCollection<DataGridCellInfo> removedCells) 54public IList<DataGridCellInfo> AddedCells 62public IList<DataGridCellInfo> RemovedCells 67private IList<DataGridCellInfo> _addedCells; 68private IList<DataGridCellInfo> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
10internal class VirtualizedCellInfoCollection : IList<DataGridCellInfo> 61public void Add(DataGridCellInfo cell) 84internal void AddValidatedCell(DataGridCellInfo cell) 121public bool Contains(DataGridCellInfo cell) 199public void CopyTo(DataGridCellInfo[] array, int arrayIndex) 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 222public IEnumerator<DataGridCellInfo> GetEnumerator() 230private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<DataGridCellInfo>, IEnumerator 269public DataGridCellInfo Current 278return DataGridCellInfo.Unset; 304public int IndexOf(DataGridCellInfo cell) 329public void Insert(int index, DataGridCellInfo cell) 339public bool Remove(DataGridCellInfo cell) 377public DataGridCellInfo this[int index] 452private bool IsValidCell(DataGridCellInfo cell) 457private bool IsValidPublicCell(DataGridCellInfo cell) 1323protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1447internal void RemoveAllButOne(DataGridCellInfo cellInfo) 1563private void ConvertCellInfoToIndexes(DataGridCellInfo cell, out int rowIndex, out int columnIndex) 1602private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1619return DataGridCellInfo.Unset; 1631private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1641DataGridCellInfo cellInfo = CreateCellInfo(rowInfo, column, _owner); 1650protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)