1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
807return new DataGridRow();
233 references to DataGridRow
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\ChangeSignatureDialog.xaml.cs (3)
207if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 210row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow; 224private static void FocusRow(DataGridRow row)
PresentationFramework (230)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
358internal void RaiseAutomationRowInvokeEvents(DataGridRow row) 366internal void RaiseAutomationCellInvokeEvents(DataGridColumn column, DataGridRow row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
413DataGridRow row = GetWrapper() as DataGridRow;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
20public DataGridRowAutomationPeer(DataGridRow owner) 121private DataGridRow OwningDataGridRow 125return (DataGridRow)Owner;
System\Windows\Controls\DataGrid.cs (74)
615DataGridRow row = container as DataGridRow; 629ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 798return item is DataGridRow; 819DataGridRow row = (DataGridRow)element; 830row.ClearValue(DataGridRow.IsNewItemPropertyKey); 849DataGridRow row = (DataGridRow)element; 853row.ClearValue(DataGridRow.IsNewItemPropertyKey); 868ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 1146var row = e.Row; 1156var row = (DataGridRow)arg; 1174var row = e.Row; 1294_itemAttachedStorage.SetValue(item, DataGridRow.DetailsVisibilityProperty, detailsVisibility); 1296var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1308if (_itemAttachedStorage.TryGetValue(item, DataGridRow.DetailsVisibilityProperty, out detailsVisibility)) 1313var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1337_itemAttachedStorage.ClearValue(item, DataGridRow.DetailsVisibilityProperty); 1339var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1340row?.ClearValue(DataGridRow.DetailsVisibilityProperty); 1621DataGridRow row = _rowTrackingRoot.Container; 1642DataGridRow row = ContainerFromItemInfo(info) as DataGridRow; 1647row = ContainerFromItemInfo(info) as DataGridRow; 1799DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 1898DataGridRow row = _rowTrackingRoot.Container; 1915DataGridRow row = _rowTrackingRoot.Container; 3053internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 3778DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3927internal void OnLoadingRowDetailsWrapper(DataGridRow row) 3940internal void OnUnloadingRowDetailsWrapper(DataGridRow row) 3984var row = e.Row; 4051ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 4054DataGridRow row = tracker.Container; 4564ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4582ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4585DataGridRow row = rowTracker.Container; 4715internal void HandleSelectionForRowHeaderAndDetailsInput(DataGridRow row, bool startDragging) 5842DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6135DataGridRow startingRow = startingElement as DataGridRow; 6138startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6153DataGridRow targetRowElement = targetElement as DataGridRow; 6156targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6222DataGridRow row = MouseOverRow; 6236DataGridRow row = MouseOverRow; 6260DataGridRow row = GetRowNearMouse(); 6349DataGridRow parentRow = rowHeader.ParentRow; 6364private DataGridRow GetRowNearMouse() 6377DataGridRow row = null; 6382row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6386row = itemsHost.Children[i] as DataGridRow; 6426DataGridRow row = null; 6431row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6435row = itemsHost.Children[i] as DataGridRow; 6503private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6557private DataGridRow MouseOverRow 6562DataGridRow row = null; 6566row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6991DataGridRow row = (DataGridRow)info.Container; 7004DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 8494ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 8590private ContainerTracking<DataGridRow> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
17public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs) 44public DataGridRow Row 59private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
76internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 87internal void PrepareCell(object item, DataGridRow ownerRow, int index) 135internal void ClearCell(DataGridRow ownerRow) 376var row = RowOwner; 494var row = RowOwner; 1082internal DataGridRow RowOwner 1091DataGridRow row = RowOwner; 1121private DataGridRow _owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
18public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 46public DataGridRow Row 69private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1842DataGridRow row = presenter.DataGridRowOwner; 2399DataGridRow row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
618DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow; 633public FrameworkElement GetCellContent(DataGridRow dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
19public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 38public DataGridRow Row 60private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
96VisibilityProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnCoerceVisibility)); 97DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(typeof(DataGridRow))); 98ItemsPanelProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel))))); 99FocusableProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 100BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground)); 101BindingGroupProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged)); 104SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); 105IsMouseOverPropertyKey.OverrideMetadata(typeof(DataGridRow), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 106VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize))); 107AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 115_tracker = new ContainerTracking<DataGridRow>(this); 136DependencyProperty.Register("Item", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 168public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 273DependencyProperty.Register("Header", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 297DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle)); 312DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate)); 327DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector)); 342DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate)); 361DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate)); 376DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector)); 391DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 516internal ContainerTracking<DataGridRow> Tracker 599var row = (DataGridRow)d; 610var row = (DataGridRow)d; 621var row = (DataGridRow)d; 632var row = (DataGridRow)d; 662var row = (DataGridRow)d; 673var row = (DataGridRow)d; 684var row = (DataGridRow)d; 695var row = (DataGridRow)d; 732var row = (DataGridRow)d; 749var row = (DataGridRow)d; 766(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 771(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 776DataGridRow row = (DataGridRow)d; 795var row = (DataGridRow)d; 807var row = (DataGridRow)arg; 909else if (e.Property == DataGridRow.IsEditingProperty || 910e.Property == DataGridRow.IsMouseOverProperty || 1019public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow)); 1044typeof(DataGridRow), 1049DataGridRow row = (DataGridRow)sender; 1100public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1130public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow)); 1190DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); 1253DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 1292public static DataGridRow GetRowContainingElement(FrameworkElement element) 1294return DataGridHelper.FindVisualParent<DataGridRow>(element); 1339private ContainerTracking<DataGridRow> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
8public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 19public DataGridRow Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
16public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction) 34public DataGridRow Row 48private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
8public DataGridRowEventArgs(DataGridRow row) 13public DataGridRow Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
77DataGridRow owningRow = DataGridRowOwner; 154DataGridRow row = DataGridRowOwner; 305DataGridRow rowOwner = DataGridRowOwner; 323DataGridRow rowOwner = DataGridRowOwner; 462var row = DataGridRowOwner; 598DataGridRow parent = DataGridRowOwner; 611internal DataGridRow DataGridRowOwner 613get { return DataGridHelper.FindParent<DataGridRow>(this); } 620DataGridRow owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
48var row = details.DataGridRowOwner; 55DataGridRow.DetailsTemplateProperty, 66var row = details.DataGridRowOwner; 73DataGridRow.DetailsTemplateSelectorProperty, 88DataGridRow owner = DataGridRowOwner; 112DataGridRow rowOwner = DataGridRowOwner; 159DataGridRow owner = DataGridRowOwner; 179if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty) 183else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 206var row = DataGridRowOwner; 240var row = DataGridRowOwner; 274var row = DataGridRowOwner; 310DataGridRow owner = DataGridRowOwner; 323internal DataGridRow DataGridRowOwner 325get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
210DataGridRow parent = ParentRow; 258if (e.Property == DataGridRow.HeaderProperty || e.Property == ContentProperty) 262else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 266else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 270else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 278else if (e.Property == DataGridRow.IsSelectedProperty) 302e.Property == DataGridRow.IsEditingProperty || 303e.Property == DataGridRow.IsMouseOverProperty || 325DataGridRow.HeaderProperty); 334var row = header.ParentRow; 341DataGridRow.HeaderTemplateProperty, 352var row = header.ParentRow; 359DataGridRow.HeaderTemplateSelectorProperty, 375DataGridRow.HeaderStyleProperty, 402var row = ParentRow; 420var row = ParentRow; 434var row = ParentRow; 448var row = ParentRow; 536DataGridRow parent = header.ParentRow; 560DataGridRow parentRow = ParentRow; 645DataGridRow parent = ParentRow; 678private DataGridRow PreviousRow 682DataGridRow row = ParentRow; 691return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1); 704private DataGridRow RowToResize(object gripper) 712DataGridRow rowToResize = RowToResize(sender); 722DataGridRow rowToResize = RowToResize(sender); 733DataGridRow rowToResize = RowToResize(sender); 743DataGridRow rowToResize = RowToResize(sender); 761internal DataGridRow ParentRow 765return DataGridHelper.FindParent<DataGridRow>(this); 773DataGridRow parent = ParentRow;