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