18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
675return this.OwningDataGrid.SelectedCellsInternal.Contains(new DataGridCellInfo(Item, _column)); 695DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 721DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 737DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2756currentCell = (info != null) ? new DataGridCellInfo(info, currentCell.Column, this) 3041SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(value)); 4636DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4715DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4746MakeCellSelection(new DataGridCellInfo(cell), allowsExtendSelect, allowsMinimalSelect); 4779SetCurrentValueInternal(CurrentCellProperty, new DataGridCellInfo(rowInfo, ColumnFromDisplayIndex(0), this)); 5019_selectionAnchor = new DataGridCellInfo(info.Clone(), ColumnFromDisplayIndex(0), this); 5196_selectionAnchor = new DataGridCellInfo(cellInfo); 6010SetCurrentValueInternal(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) 446foreach (DataGridCellInfo cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
695DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 721DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column); 737DataGridCellInfo currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2755DataGridCellInfo currentCell = CurrentCell; 2757: DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this); 2819DataGridCellInfo currentCell = dataGrid.CurrentCell; 2825dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid)); 2862DataGridCellInfo currentCell = dataGrid.CurrentCell; 2868dataGrid.SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid)); 2880public DataGridCellInfo CurrentCell 2882get { return (DataGridCellInfo)GetValue(CurrentCellProperty); } 2890DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2895DataGridCellInfo oldCell = (DataGridCellInfo)e.OldValue; 2896DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 3013DataGridCellInfo currentCell = CurrentCell; 3037SetCurrentValueInternal(CurrentCellProperty, DataGridCellInfo.Unset); // ClearValue 3086DataGridCellInfo currentCell = CurrentCell; 3093currentCell = DataGridCellInfo.Unset; 4131public IList<DataGridCellInfo> SelectedCells 4234foreach (DataGridCellInfo cellInfo in oldItems) 4373internal void SelectOnlyThisCell(DataGridCellInfo currentCellInfo) 4636DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4651foreach (DataGridCellInfo cellInfo in cells) 4715DataGridCellInfo cellInfo = new DataGridCellInfo(cell); 4775DataGridCellInfo currentCell = CurrentCell; 5048private void MakeCellSelection(DataGridCellInfo cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect) 7037internal DataGridCell TryFindCell(DataGridCellInfo info) 7776private static bool CellInfoNeedsAdjusting(DataGridCellInfo cellInfo) 8654private 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)