18 instantiations of DataGridCellInfo
PresentationFramework (18)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
681
return this.OwningDataGrid.SelectedCellsInternal.Contains(new
DataGridCellInfo
(Item, _column));
701
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
727
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
743
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
System\Windows\Controls\DataGrid.cs (9)
2755
currentCell = (info != null) ? new
DataGridCellInfo
(info, currentCell.Column, this)
3040
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(value));
4635
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4714
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4745
MakeCellSelection(new
DataGridCellInfo
(cell), allowsExtendSelect, allowsMinimalSelect);
4778
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, ColumnFromDisplayIndex(0), this));
5018
_selectionAnchor = new
DataGridCellInfo
(info.Clone(), ColumnFromDisplayIndex(0), this);
5195
_selectionAnchor = new
DataGridCellInfo
(cellInfo);
6009
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, column, this));
System\Windows\Controls\DataGridCellInfo.cs (2)
130
return new
DataGridCellInfo
(owner, column, (item == null) ? DependencyProperty.UnsetValue : item);
267
get { return new
DataGridCellInfo
(DependencyProperty.UnsetValue); }
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1332
return new
DataGridCellInfo
(rowInfo, _removedColumn, owner);
1336
return new
DataGridCellInfo
(_removedItem, column, owner);
1657
return new
DataGridCellInfo
(rowInfo, column, owner);
77 references to DataGridCellInfo
PresentationFramework (77)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
313
private DataGridCellItemAutomationPeer GetCellItemPeer(
DataGridCellInfo
cellInfo)
451
foreach (
DataGridCellInfo
cellInfo in this.OwningDataGrid.SelectedCells)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
701
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
727
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
743
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
System\Windows\Controls\DataGrid.cs (29)
2754
DataGridCellInfo
currentCell = CurrentCell;
2756
:
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this);
2818
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2824
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid));
2861
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2867
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid));
2879
public
DataGridCellInfo
CurrentCell
2881
get { return (
DataGridCellInfo
)GetValue(CurrentCellProperty); }
2889
DependencyProperty.Register("CurrentCell", typeof(
DataGridCellInfo
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridCellInfo
.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2894
DataGridCellInfo
oldCell = (
DataGridCellInfo
)e.OldValue;
2895
DataGridCellInfo
currentCell = (
DataGridCellInfo
)e.NewValue;
3012
DataGridCellInfo
currentCell = CurrentCell;
3036
SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.Unset); // ClearValue
3085
DataGridCellInfo
currentCell = CurrentCell;
3092
currentCell =
DataGridCellInfo
.Unset;
4130
public IList<
DataGridCellInfo
> SelectedCells
4233
foreach (
DataGridCellInfo
cellInfo in oldItems)
4372
internal void SelectOnlyThisCell(
DataGridCellInfo
currentCellInfo)
4635
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4650
foreach (
DataGridCellInfo
cellInfo in cells)
4714
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4774
DataGridCellInfo
currentCell = CurrentCell;
5047
private void MakeCellSelection(
DataGridCellInfo
cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect)
7032
internal DataGridCell TryFindCell(
DataGridCellInfo
info)
7771
private static bool CellInfoNeedsAdjusting(
DataGridCellInfo
cellInfo)
8649
private Nullable<
DataGridCellInfo
> _selectionAnchor; // For doing extended selection
System\Windows\Controls\DataGridCellInfo.cs (10)
94
internal DataGridCellInfo(
DataGridCellInfo
info)
120
internal static
DataGridCellInfo
CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner)
155
if (obj is
DataGridCellInfo
)
157
return EqualsImpl((
DataGridCellInfo
)obj);
166
public static bool operator ==(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
174
public static bool operator !=(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
179
internal bool EqualsImpl(
DataGridCellInfo
cell)
265
internal static
DataGridCellInfo
Unset
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
23
public SelectedCellsChangedEventArgs(List<
DataGridCellInfo
> addedCells, List<
DataGridCellInfo
> removedCells)
37
public SelectedCellsChangedEventArgs(ReadOnlyCollection<
DataGridCellInfo
> addedCells, ReadOnlyCollection<
DataGridCellInfo
> removedCells)
58
public IList<
DataGridCellInfo
> AddedCells
66
public IList<
DataGridCellInfo
> RemovedCells
71
private IList<
DataGridCellInfo
> _addedCells;
72
private IList<
DataGridCellInfo
> _removedCells;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
15
internal class VirtualizedCellInfoCollection : IList<
DataGridCellInfo
>
66
public void Add(
DataGridCellInfo
cell)
89
internal void AddValidatedCell(
DataGridCellInfo
cell)
126
public bool Contains(
DataGridCellInfo
cell)
204
public void CopyTo(
DataGridCellInfo
[] array, int arrayIndex)
206
List<
DataGridCellInfo
> list = new List<
DataGridCellInfo
>();
227
public IEnumerator<
DataGridCellInfo
> GetEnumerator()
235
private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<
DataGridCellInfo
>, IEnumerator
274
public
DataGridCellInfo
Current
283
return
DataGridCellInfo
.Unset;
309
public int IndexOf(
DataGridCellInfo
cell)
334
public void Insert(int index,
DataGridCellInfo
cell)
344
public bool Remove(
DataGridCellInfo
cell)
382
public
DataGridCellInfo
this[int index]
457
private bool IsValidCell(
DataGridCellInfo
cell)
462
private bool IsValidPublicCell(
DataGridCellInfo
cell)
1328
protected override
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
1452
internal void RemoveAllButOne(
DataGridCellInfo
cellInfo)
1568
private void ConvertCellInfoToIndexes(
DataGridCellInfo
cell, out int rowIndex, out int columnIndex)
1607
private
DataGridCellInfo
GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index)
1624
return
DataGridCellInfo
.Unset;
1636
private void AddRegionToList(CellRegion region, List<
DataGridCellInfo
> list)
1646
DataGridCellInfo
cellInfo = CreateCellInfo(rowInfo, column, _owner);
1655
protected virtual
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)