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)
2728
currentCell = (info != null) ? new
DataGridCellInfo
(info, currentCell.Column, this)
3010
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(value));
4593
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4669
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4700
MakeCellSelection(new
DataGridCellInfo
(cell), allowsExtendSelect, allowsMinimalSelect);
4733
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, ColumnFromDisplayIndex(0), this));
4970
_selectionAnchor = new
DataGridCellInfo
(info.Clone(), ColumnFromDisplayIndex(0), this);
5147
_selectionAnchor = new
DataGridCellInfo
(cellInfo);
5961
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)
2727
DataGridCellInfo
currentCell = CurrentCell;
2729
:
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this);
2791
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2797
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid));
2834
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2840
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid));
2852
public
DataGridCellInfo
CurrentCell
2854
get { return (
DataGridCellInfo
)GetValue(CurrentCellProperty); }
2862
DependencyProperty.Register("CurrentCell", typeof(
DataGridCellInfo
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridCellInfo
.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2867
DataGridCellInfo
oldCell = (
DataGridCellInfo
)e.OldValue;
2868
DataGridCellInfo
currentCell = (
DataGridCellInfo
)e.NewValue;
2982
DataGridCellInfo
currentCell = CurrentCell;
3006
SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.Unset); // ClearValue
3055
DataGridCellInfo
currentCell = CurrentCell;
3062
currentCell =
DataGridCellInfo
.Unset;
4094
public IList<
DataGridCellInfo
> SelectedCells
4197
foreach (
DataGridCellInfo
cellInfo in oldItems)
4333
internal void SelectOnlyThisCell(
DataGridCellInfo
currentCellInfo)
4593
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4608
foreach (
DataGridCellInfo
cellInfo in cells)
4669
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4729
DataGridCellInfo
currentCell = CurrentCell;
4999
private void MakeCellSelection(
DataGridCellInfo
cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect)
6982
internal DataGridCell TryFindCell(
DataGridCellInfo
info)
7718
private static bool CellInfoNeedsAdjusting(
DataGridCellInfo
cellInfo)
8596
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)