18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
672
return this.OwningDataGrid.SelectedCellsInternal.Contains(new
DataGridCellInfo
(Item, _column));
692
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
718
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
734
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2735
currentCell = (info != null) ? new
DataGridCellInfo
(info, currentCell.Column, this)
3017
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(value));
4600
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4676
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4707
MakeCellSelection(new
DataGridCellInfo
(cell), allowsExtendSelect, allowsMinimalSelect);
4740
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, ColumnFromDisplayIndex(0), this));
4977
_selectionAnchor = new
DataGridCellInfo
(info.Clone(), ColumnFromDisplayIndex(0), this);
5154
_selectionAnchor = new
DataGridCellInfo
(cellInfo);
5968
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
125
return new
DataGridCellInfo
(owner, column, item ?? DependencyProperty.UnsetValue);
262
get { return new
DataGridCellInfo
(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1328
return new
DataGridCellInfo
(rowInfo, _removedColumn, owner);
1332
return new
DataGridCellInfo
(_removedItem, column, owner);
1653
return new
DataGridCellInfo
(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
308
private DataGridCellItemAutomationPeer GetCellItemPeer(
DataGridCellInfo
cellInfo)
422
foreach (
DataGridCellInfo
cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
692
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
718
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
734
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2734
DataGridCellInfo
currentCell = CurrentCell;
2736
:
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this);
2798
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2804
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid));
2841
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2847
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid));
2859
public
DataGridCellInfo
CurrentCell
2861
get { return (
DataGridCellInfo
)GetValue(CurrentCellProperty); }
2869
DependencyProperty.Register("CurrentCell", typeof(
DataGridCellInfo
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridCellInfo
.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2874
DataGridCellInfo
oldCell = (
DataGridCellInfo
)e.OldValue;
2875
DataGridCellInfo
currentCell = (
DataGridCellInfo
)e.NewValue;
2989
DataGridCellInfo
currentCell = CurrentCell;
3013
SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.Unset); // ClearValue
3062
DataGridCellInfo
currentCell = CurrentCell;
3069
currentCell =
DataGridCellInfo
.Unset;
4101
public IList<
DataGridCellInfo
> SelectedCells
4204
foreach (
DataGridCellInfo
cellInfo in oldItems)
4340
internal void SelectOnlyThisCell(
DataGridCellInfo
currentCellInfo)
4600
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4615
foreach (
DataGridCellInfo
cellInfo in cells)
4676
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4736
DataGridCellInfo
currentCell = CurrentCell;
5006
private void MakeCellSelection(
DataGridCellInfo
cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect)
6989
internal DataGridCell TryFindCell(
DataGridCellInfo
info)
7725
private static bool CellInfoNeedsAdjusting(
DataGridCellInfo
cellInfo)
8603
private Nullable<
DataGridCellInfo
> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
89
internal DataGridCellInfo(
DataGridCellInfo
info)
115
internal static
DataGridCellInfo
CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner)
150
if (obj is
DataGridCellInfo
)
152
return EqualsImpl((
DataGridCellInfo
)obj);
161
public static bool operator ==(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
169
public static bool operator !=(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
174
internal bool EqualsImpl(
DataGridCellInfo
cell)
260
internal static
DataGridCellInfo
Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
20
public SelectedCellsChangedEventArgs(List<
DataGridCellInfo
> addedCells, List<
DataGridCellInfo
> removedCells)
34
public SelectedCellsChangedEventArgs(ReadOnlyCollection<
DataGridCellInfo
> addedCells, ReadOnlyCollection<
DataGridCellInfo
> removedCells)
55
public IList<
DataGridCellInfo
> AddedCells
63
public IList<
DataGridCellInfo
> RemovedCells
68
private IList<
DataGridCellInfo
> _addedCells;
69
private IList<
DataGridCellInfo
> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
11
internal class VirtualizedCellInfoCollection : IList<
DataGridCellInfo
>
62
public void Add(
DataGridCellInfo
cell)
85
internal void AddValidatedCell(
DataGridCellInfo
cell)
122
public bool Contains(
DataGridCellInfo
cell)
200
public void CopyTo(
DataGridCellInfo
[] array, int arrayIndex)
202
List<
DataGridCellInfo
> list = new List<
DataGridCellInfo
>();
223
public IEnumerator<
DataGridCellInfo
> GetEnumerator()
231
private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<
DataGridCellInfo
>, IEnumerator
270
public
DataGridCellInfo
Current
279
return
DataGridCellInfo
.Unset;
305
public int IndexOf(
DataGridCellInfo
cell)
330
public void Insert(int index,
DataGridCellInfo
cell)
340
public bool Remove(
DataGridCellInfo
cell)
378
public
DataGridCellInfo
this[int index]
453
private bool IsValidCell(
DataGridCellInfo
cell)
458
private bool IsValidPublicCell(
DataGridCellInfo
cell)
1324
protected override
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
1448
internal void RemoveAllButOne(
DataGridCellInfo
cellInfo)
1564
private void ConvertCellInfoToIndexes(
DataGridCellInfo
cell, out int rowIndex, out int columnIndex)
1603
private
DataGridCellInfo
GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index)
1620
return
DataGridCellInfo
.Unset;
1632
private void AddRegionToList(CellRegion region, List<
DataGridCellInfo
> list)
1642
DataGridCellInfo
cellInfo = CreateCellInfo(rowInfo, column, _owner);
1651
protected virtual
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)