19 instantiations of DataGridCellInfo
PresentationFramework (18)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
655
return this.OwningDataGrid.SelectedCellsInternal.Contains(new
DataGridCellInfo
(Item, _column));
675
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
701
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
717
DataGridCellInfo currentCellInfo = new
DataGridCellInfo
(Item, _column);
src\Framework\System\Windows\Controls\DataGrid.cs (9)
2760
currentCell = (info != null) ? new
DataGridCellInfo
(info, currentCell.Column, this)
3045
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(value));
4640
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4719
DataGridCellInfo cellInfo = new
DataGridCellInfo
(cell);
4750
MakeCellSelection(new
DataGridCellInfo
(cell), allowsExtendSelect, allowsMinimalSelect);
4783
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, ColumnFromDisplayIndex(0), this));
5023
_selectionAnchor = new
DataGridCellInfo
(info.Clone(), ColumnFromDisplayIndex(0), this);
5200
_selectionAnchor = new
DataGridCellInfo
(cellInfo);
6014
SetCurrentValueInternal(CurrentCellProperty, new
DataGridCellInfo
(rowInfo, column, this));
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (2)
137
return new
DataGridCellInfo
(owner, column, (item == null) ? DependencyProperty.UnsetValue : item);
274
get { return new
DataGridCellInfo
(DependencyProperty.UnsetValue); }
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1335
return new
DataGridCellInfo
(rowInfo, _removedColumn, owner);
1339
return new
DataGridCellInfo
(_removedItem, column, owner);
1660
return new
DataGridCellInfo
(rowInfo, column, owner);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
722
dataGrid.SelectedCells.Add(new
DataGridCellInfo
(cell));
78 references to DataGridCellInfo
PresentationFramework (77)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
312
private DataGridCellItemAutomationPeer GetCellItemPeer(
DataGridCellInfo
cellInfo)
453
foreach (
DataGridCellInfo
cellInfo in this.OwningDataGrid.SelectedCells)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
675
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
701
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
717
DataGridCellInfo
currentCellInfo = new DataGridCellInfo(Item, _column);
src\Framework\System\Windows\Controls\DataGrid.cs (29)
2759
DataGridCellInfo
currentCell = CurrentCell;
2761
:
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, this);
2823
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2829
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(newItem, currentCell.Column, dataGrid));
2866
DataGridCellInfo
currentCell = dataGrid.CurrentCell;
2872
dataGrid.SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.CreatePossiblyPartialCellInfo(currentCell.Item, newColumn, dataGrid));
2884
public
DataGridCellInfo
CurrentCell
2886
get { return (
DataGridCellInfo
)GetValue(CurrentCellProperty); }
2894
DependencyProperty.Register("CurrentCell", typeof(
DataGridCellInfo
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridCellInfo
.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2899
DataGridCellInfo
oldCell = (
DataGridCellInfo
)e.OldValue;
2900
DataGridCellInfo
currentCell = (
DataGridCellInfo
)e.NewValue;
3017
DataGridCellInfo
currentCell = CurrentCell;
3041
SetCurrentValueInternal(CurrentCellProperty,
DataGridCellInfo
.Unset); // ClearValue
3090
DataGridCellInfo
currentCell = CurrentCell;
3097
currentCell =
DataGridCellInfo
.Unset;
4135
public IList<
DataGridCellInfo
> SelectedCells
4238
foreach (
DataGridCellInfo
cellInfo in oldItems)
4377
internal void SelectOnlyThisCell(
DataGridCellInfo
currentCellInfo)
4640
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4655
foreach (
DataGridCellInfo
cellInfo in cells)
4719
DataGridCellInfo
cellInfo = new DataGridCellInfo(cell);
4779
DataGridCellInfo
currentCell = CurrentCell;
5052
private void MakeCellSelection(
DataGridCellInfo
cellInfo, bool allowsExtendSelect, bool allowsMinimalSelect)
7035
internal DataGridCell TryFindCell(
DataGridCellInfo
info)
7774
private static bool CellInfoNeedsAdjusting(
DataGridCellInfo
cellInfo)
8676
private Nullable<
DataGridCellInfo
> _selectionAnchor; // For doing extended selection
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (10)
101
internal DataGridCellInfo(
DataGridCellInfo
info)
127
internal static
DataGridCellInfo
CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner)
162
if (obj is
DataGridCellInfo
)
164
return EqualsImpl((
DataGridCellInfo
)obj);
173
public static bool operator ==(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
181
public static bool operator !=(
DataGridCellInfo
cell1,
DataGridCellInfo
cell2)
186
internal bool EqualsImpl(
DataGridCellInfo
cell)
272
internal static
DataGridCellInfo
Unset
src\Framework\System\Windows\Controls\SelectedCellsChangedEventArgs.cs (8)
24
public SelectedCellsChangedEventArgs(List<
DataGridCellInfo
> addedCells, List<
DataGridCellInfo
> removedCells)
45
public SelectedCellsChangedEventArgs(ReadOnlyCollection<
DataGridCellInfo
> addedCells, ReadOnlyCollection<
DataGridCellInfo
> removedCells)
73
public IList<
DataGridCellInfo
> AddedCells
81
public IList<
DataGridCellInfo
> RemovedCells
86
private IList<
DataGridCellInfo
> _addedCells;
87
private IList<
DataGridCellInfo
> _removedCells;
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (25)
16
internal class VirtualizedCellInfoCollection : IList<
DataGridCellInfo
>
67
public void Add(
DataGridCellInfo
cell)
90
internal void AddValidatedCell(
DataGridCellInfo
cell)
127
public bool Contains(
DataGridCellInfo
cell)
205
public void CopyTo(
DataGridCellInfo
[] array, int arrayIndex)
207
List<
DataGridCellInfo
> list = new List<
DataGridCellInfo
>();
228
public IEnumerator<
DataGridCellInfo
> GetEnumerator()
236
private class VirtualizedCellInfoCollectionEnumerator : IEnumerator<
DataGridCellInfo
>, IEnumerator
275
public
DataGridCellInfo
Current
284
return
DataGridCellInfo
.Unset;
310
public int IndexOf(
DataGridCellInfo
cell)
335
public void Insert(int index,
DataGridCellInfo
cell)
345
public bool Remove(
DataGridCellInfo
cell)
383
public
DataGridCellInfo
this[int index]
460
private bool IsValidCell(
DataGridCellInfo
cell)
465
private bool IsValidPublicCell(
DataGridCellInfo
cell)
1331
protected override
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
1455
internal void RemoveAllButOne(
DataGridCellInfo
cellInfo)
1571
private void ConvertCellInfoToIndexes(
DataGridCellInfo
cell, out int rowIndex, out int columnIndex)
1610
private
DataGridCellInfo
GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index)
1627
return
DataGridCellInfo
.Unset;
1639
private void AddRegionToList(CellRegion region, List<
DataGridCellInfo
> list)
1649
DataGridCellInfo
cellInfo = CreateCellInfo(rowInfo, column, _owner);
1658
protected virtual
DataGridCellInfo
CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
201
DataGridCellInfo
currentCell = dataGrid.CurrentCell;