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)
2734currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3016SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4599DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4675DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4706MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4739SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 4976_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5153_selectionAnchor = new DataGridCellInfo(cellInfo); 5967SetCurrentValueInternal(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)
2733DataGridCellInfo currentCell = CurrentCell; 2735: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2797DataGridCellInfo currentCell = dataGrid.CurrentCell; 2803dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2840DataGridCellInfo currentCell = dataGrid.CurrentCell; 2846dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2858public DataGridCellInfo CurrentCell 2860get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2868DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2873DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2874DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 2988DataGridCellInfo currentCell = CurrentCell; 3012SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3061DataGridCellInfo currentCell = CurrentCell; 3068currentCell = DataGridCellInfo.Unset; 4100public IList<DataGridCellInfo> SelectedCells 4203foreach (DataGridCellInfo cellInfo in oldItems) 4339internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4599DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4614foreach (DataGridCellInfo cellInfo in cells) 4675DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4735DataGridCellInfo currentCell = CurrentCell; 5005private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 6988internal DataGridCell TryFindCell(DataGridCellInfo info) 7724private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8602private 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)