18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
671
return this.OwningDataGrid.SelectedCellsInternal.Contains(new
DataGridCellInfo
(Item, _column));
691
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
717
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
733
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2734
currentCell = (info != null) ? new
DataGridCellInfo
(info, currentCell.Column, this)
3016
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(value));
4599
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4675
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4706
MakeCellSelection(new
DataGridCellInfo
(cell), allowsExtendSelect, allowsMinimalSelect);
4739
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, ColumnFromDisplayIndex(0), this));
4976
_selectionAnchor = new
DataGridCellInfo
(info.Clone(), ColumnFromDisplayIndex(0), this);
5153
_selectionAnchor = new
DataGridCellInfo
(cellInfo);
5967
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
124
return new
DataGridCellInfo
(owner, column, item ?? DependencyProperty.UnsetValue);
261
get { return new
DataGridCellInfo
(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1327
return new
DataGridCellInfo
(rowInfo, _removedColumn, owner);
1331
return new
DataGridCellInfo
(_removedItem, column, owner);
1652
return new
DataGridCellInfo
(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
307
private DataGridCellItemAutomationPeer GetCellItemPeer(
DataGridCellInfo
cellInfo)
421
foreach (
DataGridCellInfo
cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
691
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
717
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
733
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2733
DataGridCellInfo
currentCell = CurrentCell;
2735
:
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this);
2797
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2803
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid));
2840
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2846
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid));
2858
public
DataGridCellInfo
CurrentCell
2860
get { return (
DataGridCellInfo
)GetValue(CurrentCellProperty); }
2868
DependencyProperty.Register("CurrentCell", typeof(
DataGridCellInfo
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridCellInfo
.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2873
DataGridCellInfo
oldCell = (
DataGridCellInfo
)e.OldValue;
2874
DataGridCellInfo
currentCell = (
DataGridCellInfo
)e.NewValue;
2988
DataGridCellInfo
currentCell = CurrentCell;
3012
SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.Unset); // ClearValue
3061
DataGridCellInfo
currentCell = CurrentCell;
3068
currentCell =
DataGridCellInfo
.Unset;
4100
public IList<
DataGridCellInfo
> SelectedCells
4203
foreach (
DataGridCellInfo
cellInfo in oldItems)
4339
internal void SelectOnlyThisCell(
DataGridCellInfo
currentCellInfo)
4599
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4614
foreach (
DataGridCellInfo
cellInfo in cells)
4675
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4735
DataGridCellInfo
currentCell = CurrentCell;
5005
private void MakeCellSelection(
DataGridCellInfo
cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect)
6988
internal DataGridCell TryFindCell(
DataGridCellInfo
info)
7724
private static bool CellInfoNeedsAdjusting(
DataGridCellInfo
cellInfo)
8602
private Nullable<
DataGridCellInfo
> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
88
internal DataGridCellInfo(
DataGridCellInfo
info)
114
internal static
DataGridCellInfo
CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner)
149
if (obj is
DataGridCellInfo
)
151
return EqualsImpl((
DataGridCellInfo
)obj);
160
public static bool operator ==(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
168
public static bool operator !=(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
173
internal bool EqualsImpl(
DataGridCellInfo
cell)
259
internal static
DataGridCellInfo
Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
19
public SelectedCellsChangedEventArgs(List<
DataGridCellInfo
> addedCells, List<
DataGridCellInfo
> removedCells)
33
public SelectedCellsChangedEventArgs(ReadOnlyCollection<
DataGridCellInfo
> addedCells, ReadOnlyCollection<
DataGridCellInfo
> removedCells)
54
public IList<
DataGridCellInfo
> AddedCells
62
public IList<
DataGridCellInfo
> RemovedCells
67
private IList<
DataGridCellInfo
> _addedCells;
68
private IList<
DataGridCellInfo
> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
10
internal class VirtualizedCellInfoCollection : IList<
DataGridCellInfo
>
61
public void Add(
DataGridCellInfo
cell)
84
internal void AddValidatedCell(
DataGridCellInfo
cell)
121
public bool Contains(
DataGridCellInfo
cell)
199
public void CopyTo(
DataGridCellInfo
[] array, int arrayIndex)
201
List<
DataGridCellInfo
> list = new List<
DataGridCellInfo
>();
222
public IEnumerator<
DataGridCellInfo
> GetEnumerator()
230
private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<
DataGridCellInfo
>, IEnumerator
269
public
DataGridCellInfo
Current
278
return
DataGridCellInfo
.Unset;
304
public int IndexOf(
DataGridCellInfo
cell)
329
public void Insert(int index,
DataGridCellInfo
cell)
339
public bool Remove(
DataGridCellInfo
cell)
377
public
DataGridCellInfo
this[int index]
452
private bool IsValidCell(
DataGridCellInfo
cell)
457
private bool IsValidPublicCell(
DataGridCellInfo
cell)
1323
protected override
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
1447
internal void RemoveAllButOne(
DataGridCellInfo
cellInfo)
1563
private void ConvertCellInfoToIndexes(
DataGridCellInfo
cell, out int rowIndex, out int columnIndex)
1602
private
DataGridCellInfo
GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index)
1619
return
DataGridCellInfo
.Unset;
1631
private void AddRegionToList(CellRegion region, List<
DataGridCellInfo
> list)
1641
DataGridCellInfo
cellInfo = CreateCellInfo(rowInfo, column, _owner);
1650
protected virtual
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)