19 instantiations of DataGridCellInfo
PresentationFramework (18)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
655return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 675DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 701DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 717DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
src\Framework\System\Windows\Controls\DataGrid.cs (9)
2760currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3045SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4640DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4719DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4750MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4783SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 5023_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5200_selectionAnchor = new DataGridCellInfo(cellInfo); 6014SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, column, this));
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (2)
137return new DataGridCellInfo(owner, column, (item == null) ? DependencyProperty.UnsetValue : item); 274get { return new DataGridCellInfo(DependencyProperty.UnsetValue); }
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1335return new DataGridCellInfo(rowInfo, _removedColumn, owner); 1339return new DataGridCellInfo(_removedItem, column, owner); 1660return new DataGridCellInfo(rowInfo, column, owner);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
722dataGrid.SelectedCells.Add(new DataGridCellInfo(cell));
78 references to DataGridCellInfo
PresentationFramework (77)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
312private DataGridCellItemAutomationPeer GetCellItemPeer(DataGridCellInfo cellInfo) 453foreach (DataGridCellInfo cellInfo in this.OwningDataGrid.SelectedCells)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
675DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 701DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 717DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
src\Framework\System\Windows\Controls\DataGrid.cs (29)
2759DataGridCellInfo currentCell = CurrentCell; 2761: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2823DataGridCellInfo currentCell = dataGrid.CurrentCell; 2829dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2866DataGridCellInfo currentCell = dataGrid.CurrentCell; 2872dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2884public DataGridCellInfo CurrentCell 2886get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2894DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2899DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2900DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 3017DataGridCellInfo currentCell = CurrentCell; 3041SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3090DataGridCellInfo currentCell = CurrentCell; 3097currentCell = DataGridCellInfo.Unset; 4135public IList<DataGridCellInfo> SelectedCells 4238foreach (DataGridCellInfo cellInfo in oldItems) 4377internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4640DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4655foreach (DataGridCellInfo cellInfo in cells) 4719DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4779DataGridCellInfo currentCell = CurrentCell; 5052private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 7035internal DataGridCell TryFindCell(DataGridCellInfo info) 7774private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8676private Nullable<DataGridCellInfo> _selectionAnchor; // For doing extended selection
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (10)
101internal DataGridCellInfo(DataGridCellInfo info) 127internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 162if (obj is DataGridCellInfo) 164return EqualsImpl((DataGridCellInfo)obj); 173public static bool operator ==(DataGridCellInfo cell1, DataGridCellInfo cell2) 181public static bool operator !=(DataGridCellInfo cell1, DataGridCellInfo cell2) 186internal bool EqualsImpl(DataGridCellInfo cell) 272internal static DataGridCellInfo Unset
src\Framework\System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
24public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells) 45public SelectedCellsChangedEventArgs(ReadOnlyCollection<DataGridCellInfo> addedCells, ReadOnlyCollection<DataGridCellInfo> removedCells) 73public IList<DataGridCellInfo> AddedCells 81public IList<DataGridCellInfo> RemovedCells 86private IList<DataGridCellInfo> _addedCells; 87private IList<DataGridCellInfo> _removedCells;
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
16internal class VirtualizedCellInfoCollection : IList<DataGridCellInfo> 67public void Add(DataGridCellInfo cell) 90internal void AddValidatedCell(DataGridCellInfo cell) 127public bool Contains(DataGridCellInfo cell) 205public void CopyTo(DataGridCellInfo[] array, int arrayIndex) 207List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 228public IEnumerator<DataGridCellInfo> GetEnumerator() 236private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<DataGridCellInfo>, IEnumerator 275public DataGridCellInfo Current 284return DataGridCellInfo.Unset; 310public int IndexOf(DataGridCellInfo cell) 335public void Insert(int index, DataGridCellInfo cell) 345public bool Remove(DataGridCellInfo cell) 383public DataGridCellInfo this[int index] 460private bool IsValidCell(DataGridCellInfo cell) 465private bool IsValidPublicCell(DataGridCellInfo cell) 1331protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1455internal void RemoveAllButOne(DataGridCellInfo cellInfo) 1571private void ConvertCellInfoToIndexes(DataGridCellInfo cell, out int rowIndex, out int columnIndex) 1610private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1627return DataGridCellInfo.Unset; 1639private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1649DataGridCellInfo cellInfo = CreateCellInfo(rowInfo, column, _owner); 1658protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
201DataGridCellInfo currentCell = dataGrid.CurrentCell;