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); 1311if (_itemAttachedStorage.TryGetValue(item, DataGridRow.DetailsVisibilityProperty, out detailsVisibility)) 1316var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1340_itemAttachedStorage.ClearValue(item, DataGridRow.DetailsVisibilityProperty); 1342var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1343row?.ClearValue(DataGridRow.DetailsVisibilityProperty); 1624DataGridRow row = _rowTrackingRoot.Container; 1645DataGridRow row = ContainerFromItemInfo(info) as DataGridRow; 1650row = ContainerFromItemInfo(info) as DataGridRow; 1802DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 1904DataGridRow row = _rowTrackingRoot.Container; 1921DataGridRow row = _rowTrackingRoot.Container; 3059internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 3784DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3933internal void OnLoadingRowDetailsWrapper(DataGridRow row) 3946internal void OnUnloadingRowDetailsWrapper(DataGridRow row) 3990var row = e.Row; 4057ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 4060DataGridRow row = tracker.Container; 4570ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4588ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4591DataGridRow row = rowTracker.Container; 4721internal void HandleSelectionForRowHeaderAndDetailsInput(DataGridRow row, bool startDragging) 5848DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6141DataGridRow startingRow = startingElement as DataGridRow; 6144startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6159DataGridRow targetRowElement = targetElement as DataGridRow; 6162targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6228DataGridRow row = MouseOverRow; 6242DataGridRow row = MouseOverRow; 6266DataGridRow row = GetRowNearMouse(); 6355DataGridRow parentRow = rowHeader.ParentRow; 6370private DataGridRow GetRowNearMouse() 6383DataGridRow row = null; 6388row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6392row = itemsHost.Children[i] as DataGridRow; 6432DataGridRow row = null; 6437row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6441row = itemsHost.Children[i] as DataGridRow; 6509private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6563private DataGridRow MouseOverRow 6568DataGridRow row = null; 6572row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6997DataGridRow row = (DataGridRow)info.Container; 7010DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 8500ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 8596private 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; 1085internal DataGridRow RowOwner 1094DataGridRow row = RowOwner; 1124private 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)
1848DataGridRow row = presenter.DataGridRowOwner; 2405DataGridRow 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))); 171public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 276DependencyProperty.Register("Header", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 300DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle)); 315DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate)); 330DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector)); 345DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate)); 364DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate)); 379DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector)); 394DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 522internal ContainerTracking<DataGridRow> Tracker 605var row = (DataGridRow)d; 616var row = (DataGridRow)d; 627var row = (DataGridRow)d; 638var row = (DataGridRow)d; 668var row = (DataGridRow)d; 679var row = (DataGridRow)d; 690var row = (DataGridRow)d; 701var row = (DataGridRow)d; 738var row = (DataGridRow)d; 755var row = (DataGridRow)d; 772(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 777(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 782DataGridRow row = (DataGridRow)d; 801var row = (DataGridRow)d; 813var row = (DataGridRow)arg; 915else if (e.Property == DataGridRow.IsEditingProperty || 916e.Property == DataGridRow.IsMouseOverProperty || 1025public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow)); 1050typeof(DataGridRow), 1055DataGridRow row = (DataGridRow)sender; 1106public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1136public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow)); 1196DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); 1259DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 1298public static DataGridRow GetRowContainingElement(FrameworkElement element) 1300return DataGridHelper.FindVisualParent<DataGridRow>(element); 1345private 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;