1 instantiation of DataGridCell
PresentationFramework (1)
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
300return new DataGridCell();
177 references to DataGridCell
Microsoft.VisualStudio.LanguageServices (2)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
225var cell = row.FindDescendant<DataGridCell>();
PresentationFramework (175)
System\Windows\Automation\Peers\DataGridCellAutomationPeer.cs (1)
25public DataGridCellAutomationPeer(DataGridCell owner)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
631DataGridCell cell = this.OwningCell; 854private DataGridCell OwningCell 868DataGridCell cell = this.OwningCell;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
242DataGridCell cell = this.OwningDataGrid.TryFindCell(item, this.OwningDataGrid.Columns[0]); 446column = (childItem as DataGridCell).Column;
System\Windows\Controls\DataGrid.cs (64)
1766DataGridCell cell = GetCellNearMouse(); 2099DataGridCell cellContainer = GetEventCellOrCurrentCell(e); 2130DataGridCell cell = CurrentCellContainer; 2295private DataGridCell GetEventCellOrCurrentCell(RoutedEventArgs e) 2299return ((source == this) || (source == null)) ? CurrentCellContainer : DataGridHelper.FindVisualParent<DataGridCell>(source); 2304DataGridCell cellContainer = GetEventCellOrCurrentCell(e); 2346DataGridCell cell = CurrentCellContainer; 2520DataGridCell cell = CurrentCellContainer; 2708DataGridCell cell = CurrentCellContainer; 2925var oldCellContainer = dataGrid._currentCellContainer; 2933DataGridCell cell = dataGrid._pendingCurrentCellContainer; 2988private void UpdateCurrentCell(DataGridCell cell, bool isFocusWithinCell) 3006internal DataGridCell CurrentCellContainer 3054DataGridCell cell = CurrentCellContainer; 3068DataGridCell cell = CurrentCellContainer; 3184DataGridCell cellContainer = CurrentCellContainer; 3240internal bool CancelEdit(DataGridCell cell) 3242DataGridCell currentCell = CurrentCellContainer; 3326private bool EndEdit(RoutedCommand command, DataGridCell cellContainer, DataGridEditingUnit editingUnit, bool exitEditMode) 3420internal DataGridCell FocusedCell 3725private void UpdateRowEditing(DataGridCell cell) 4631ContainerTracking<DataGridCell> cellTracker = cellsPresenter.CellTrackingRoot; 4634DataGridCell cell = cellTracker.Container; 4652DataGridCell cell = TryFindCell(cellInfo); 4710internal void CellIsSelectedChanged(DataGridCell cell, bool isSelected) 4732internal void HandleSelectionForCellInput(DataGridCell cell, bool startDragging, bool allowsExtendSelect, bool allowsMinimalSelect) 5488DataGridCell cell = TryFindCell(info, column); 5581DataGridCell currentCellContainer = CurrentCellContainer; 5849DataGridCell nextCellContainer = TryFindCell(nextInfo, nextColumn); 5915DataGridCell currentCellContainer = CurrentCellContainer; 5949DataGridCell newCell = GetCellForSelectAndEditOnFocusMove(); 5954DataGridCell realNewCell = TryFindCell(newCell.RowDataItem, newCell.Column); 5980DataGridCell currentCellContainer = CurrentCellContainer; 6029private DataGridCell GetCellForSelectAndEditOnFocusMove() 6031DataGridCell newCell = Keyboard.FocusedElement as DataGridCell; 6042private void SelectAndEditOnFocusMove(KeyEventArgs e, DataGridCell oldCell, bool wasEditing, bool allowsExtendSelect, bool ignoreControlKey) 6044DataGridCell newCell = GetCellForSelectAndEditOnFocusMove(); 6104DataGridCell cell = TryFindCell(info, column); 6158DataGridCell cell = TryFindCell(targetInfo, currentColumn); 6222DataGridCell cell = TryFindCell(targetInfo, currentColumn); 6284DataGridCell cell = MouseOverCell; 6372DataGridCell cell = null; 6377cell = sourceElement as DataGridCell; 6462private DataGridCell GetCellNearMouse() 6469DataGridCell closestCell = null; 6495ContainerTracking<DataGridCell> cellTracker = cellsPresenter.CellTrackingRoot; 6498DataGridCell cell = cellTracker.Container; 6524DataGridCell cell = row.TryGetCell(DisplayIndexMap[0]); 6629private DataGridCell MouseOverCell 6634DataGridCell cell = null; 6638cell = DataGridHelper.FindVisualParent<DataGridCell>(element); 6750DataGridCell cell = TryFindCell(item, column); 6816private void EnsureCellAutomationValueHolder(DataGridCell cell) 6825private void UpdateCellAutomationValueHolder(DataGridCell cell) 6851public CellAutomationValueHolder(DataGridCell cell) 7017private DataGridCell _cell; 7032internal DataGridCell TryFindCell(DataGridCellInfo info) 7038internal DataGridCell TryFindCell(ItemInfo info, DataGridColumn column) 7051internal DataGridCell TryFindCell(object item, DataGridColumn column) 8555ContainerTracking<DataGridCell> cellTracker = cellsPresenter.CellTrackingRoot; 8645private DataGridCell _currentCellContainer; // Reference to the cell container corresponding to CurrentCell (use CurrentCellContainer property instead) 8646private DataGridCell _pendingCurrentCellContainer; // Reference to the cell container that will become the current cell 8678private DataGridCell _focusedCell = null; // Holds the cell which has logical focus.
System\Windows\Controls\DataGridBoundColumn.cs (2)
214DataGridCell cell = element as DataGridCell;
System\Windows\Controls\DataGridCell.cs (40)
36DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(typeof(DataGridCell))); 37StyleProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 38ClipProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceClip))); 39KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 40AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 43SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); 45EventManager.RegisterClassHandler(typeof(DataGridCell), MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnAnyMouseLeftButtonDownThunk), true); 47IsMouseOverPropertyKey.OverrideMetadata(typeof(DataGridCell), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 49EventManager.RegisterClassHandler(typeof(DataGridCell), LostFocusEvent, new RoutedEventHandler(OnAnyLostFocus), true); 50EventManager.RegisterClassHandler(typeof(DataGridCell), GotFocusEvent, new RoutedEventHandler(OnAnyGotFocus), true); 61_tracker = new ContainerTracking<DataGridCell>(this); 152internal ContainerTracking<DataGridCell> Tracker 174DependencyProperty.RegisterReadOnly("Column", typeof(DataGridColumn), typeof(DataGridCell), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnColumnChanged))); 187DataGridCell cell = sender as DataGridCell; 220((DataGridCell)d).NotifyPropertyChanged(d, string.Empty, e, DataGridNotificationTarget.Cells); 228var cell = (DataGridCell)d; 301var cell = d as DataGridCell; 443if (DataGridHelper.BindingExpressionBelongsToElement<DataGridCell>(bindingExpressionsCopy[i], this)) 466public static readonly DependencyProperty IsEditingProperty = DependencyProperty.Register("IsEditing", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsEditingChanged))); 470((DataGridCell)sender).OnIsEditingChanged((bool)e.NewValue); 529DependencyProperty.RegisterReadOnly("IsReadOnly", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, OnNotifyIsReadOnlyChanged, OnCoerceIsReadOnly)); 538var cell = d as DataGridCell; 558DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 571DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 669public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(DataGridCell), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsSelectedChanged))); 673DataGridCell cell = (DataGridCell)sender; 727public static readonly RoutedEvent SelectedEvent = EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(DataGridCell)); 757public static readonly RoutedEvent UnselectedEvent = EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(DataGridCell)); 896((DataGridCell)sender).OnAnyMouseLeftButtonDown(e); 1060DataGridCell cell = (DataGridCell)d; 1147private ContainerTracking<DataGridCell> _tracker;
System\Windows\Controls\DataGridCellInfo.cs (1)
47public DataGridCellInfo(DataGridCell cell)
System\Windows\Controls\DataGridCellsPanel.cs (2)
1081DataGridCell cell = child as DataGridCell;
System\Windows\Controls\DataGridCheckBoxColumn.cs (5)
95protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 103protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 108private CheckBox GenerateCheckBox(bool isEditing, DataGridCell cell) 126DataGridCell cell = element as DataGridCell;
System\Windows\Controls\DataGridColumn.cs (4)
646DataGridCell cell = dataGridRow.TryGetCell(columnIndex); 663internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 678protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 683protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem);
System\Windows\Controls\DataGridComboBoxColumn.cs (8)
413DataGridCell cell = element as DataGridCell; 490protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 505protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 568DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 569DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 585DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 586DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
System\Windows\Controls\DataGridHelper.cs (10)
243Debug.Assert((cell is DataGridCell) || (cell is DataGridColumnHeader), "provideColumn should be one of the cell or header containers."); 307Debug.Assert((cell is DataGridCell) || (cell is DataGridColumnHeader), "provideColumn should be one of the cell or header containers."); 532DataGridCell cell = (element != null) ? element.Parent as DataGridCell : null; 551if (BindingExpressionBelongsToElement<DataGridCell>(beb, cell)) 621internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 633internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 648DataGridCell cell = (element != null) ? element.Parent as DataGridCell : null; 667VisualTreeHelper.IsAncestorOf(cell, targetElement, typeof(DataGridCell)))
System\Windows\Controls\DataGridHyperlinkColumn.cs (7)
115DataGridCell cell = element as DataGridCell; 170protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 195protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 256DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 268DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 291DataGridCell cell = DataGridOwner.CurrentCellContainer;
System\Windows\Controls\DataGridRow.cs (2)
1357internal DataGridCell TryGetCell(int index) 1362return cellsPresenter.ItemContainerGenerator.ContainerFromIndex(index) as DataGridCell;
System\Windows\Controls\DataGridTemplateColumn.cs (5)
164private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 184protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 192protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 209DataGridCell cell = element as DataGridCell;
System\Windows\Controls\DataGridTextColumn.cs (7)
82protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 99protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 124DataGridCell cell = element as DataGridCell; 222DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 234DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 269DataGridCell cell = DataGridOwner.CurrentCellContainer;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (11)
121DataGridCell cell; 166cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i); 184cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i); 283return item is DataGridCell; 310DataGridCell cell = (DataGridCell)element; 328DataGridCell cell = (DataGridCell)element; 428ContainerTracking<DataGridCell> tracker = _cellTrackingRoot; 633internal ContainerTracking<DataGridCell> CellTrackingRoot 643private ContainerTracking<DataGridCell> _cellTrackingRoot; // Root of a linked list of active cell containers
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
146internal bool Contains(DataGridCell cell)