1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
808return 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)
359internal void RaiseAutomationRowInvokeEvents(DataGridRow row) 367internal void RaiseAutomationCellInvokeEvents(DataGridColumn column, DataGridRow row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
414DataGridRow row = GetWrapper() as DataGridRow;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
21public DataGridRowAutomationPeer(DataGridRow owner) 122private DataGridRow OwningDataGridRow 126return (DataGridRow)Owner;
System\Windows\Controls\DataGrid.cs (74)
616DataGridRow row = container as DataGridRow; 630ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 799return item is DataGridRow; 820DataGridRow row = (DataGridRow)element; 831row.ClearValue(DataGridRow.IsNewItemPropertyKey); 850DataGridRow row = (DataGridRow)element; 854row.ClearValue(DataGridRow.IsNewItemPropertyKey); 869ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 1147var row = e.Row; 1157var row = (DataGridRow)arg; 1175var row = e.Row; 1295_itemAttachedStorage.SetValue(item, DataGridRow.DetailsVisibilityProperty, detailsVisibility); 1297var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1312if (_itemAttachedStorage.TryGetValue(item, DataGridRow.DetailsVisibilityProperty, out detailsVisibility)) 1317var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1341_itemAttachedStorage.ClearValue(item, DataGridRow.DetailsVisibilityProperty); 1343var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1344row?.ClearValue(DataGridRow.DetailsVisibilityProperty); 1625DataGridRow row = _rowTrackingRoot.Container; 1646DataGridRow row = ContainerFromItemInfo(info) as DataGridRow; 1651row = ContainerFromItemInfo(info) as DataGridRow; 1803DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 1905DataGridRow row = _rowTrackingRoot.Container; 1922DataGridRow row = _rowTrackingRoot.Container; 3060internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 3785DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3934internal void OnLoadingRowDetailsWrapper(DataGridRow row) 3947internal void OnUnloadingRowDetailsWrapper(DataGridRow row) 3991var row = e.Row; 4058ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 4061DataGridRow row = tracker.Container; 4571ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4589ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4592DataGridRow row = rowTracker.Container; 4722internal void HandleSelectionForRowHeaderAndDetailsInput(DataGridRow row, bool startDragging) 5849DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6142DataGridRow startingRow = startingElement as DataGridRow; 6145startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6160DataGridRow targetRowElement = targetElement as DataGridRow; 6163targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6229DataGridRow row = MouseOverRow; 6243DataGridRow row = MouseOverRow; 6267DataGridRow row = GetRowNearMouse(); 6356DataGridRow parentRow = rowHeader.ParentRow; 6371private DataGridRow GetRowNearMouse() 6384DataGridRow row = null; 6389row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6393row = itemsHost.Children[i] as DataGridRow; 6433DataGridRow row = null; 6438row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6442row = itemsHost.Children[i] as DataGridRow; 6510private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6564private DataGridRow MouseOverRow 6569DataGridRow row = null; 6573row = DataGridHelper.FindVisualParent<DataGridRow>(element); 6998DataGridRow row = (DataGridRow)info.Container; 7011DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 8501ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 8597private ContainerTracking<DataGridRow> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
18public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs) 45public DataGridRow Row 60private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
77internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 88internal void PrepareCell(object item, DataGridRow ownerRow, int index) 136internal void ClearCell(DataGridRow ownerRow) 377var row = RowOwner; 495var row = RowOwner; 1086internal DataGridRow RowOwner 1095DataGridRow row = RowOwner; 1125private DataGridRow _owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
19public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 47public DataGridRow Row 70private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1849DataGridRow row = presenter.DataGridRowOwner; 2406DataGridRow row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
619DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow; 634public FrameworkElement GetCellContent(DataGridRow dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
20public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 39public DataGridRow Row 61private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
97VisibilityProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnCoerceVisibility)); 98DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(typeof(DataGridRow))); 99ItemsPanelProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel))))); 100FocusableProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 101BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground)); 102BindingGroupProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged)); 105SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); 106IsMouseOverPropertyKey.OverrideMetadata(typeof(DataGridRow), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 107VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize))); 108AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 116_tracker = new ContainerTracking<DataGridRow>(this); 137DependencyProperty.Register("Item", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 172public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 277DependencyProperty.Register("Header", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 301DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle)); 316DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate)); 331DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector)); 346DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate)); 365DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate)); 380DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector)); 395DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 523internal ContainerTracking<DataGridRow> Tracker 606var row = (DataGridRow)d; 617var row = (DataGridRow)d; 628var row = (DataGridRow)d; 639var row = (DataGridRow)d; 669var row = (DataGridRow)d; 680var row = (DataGridRow)d; 691var row = (DataGridRow)d; 702var row = (DataGridRow)d; 739var row = (DataGridRow)d; 756var row = (DataGridRow)d; 773(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 778(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 783DataGridRow row = (DataGridRow)d; 802var row = (DataGridRow)d; 814var row = (DataGridRow)arg; 916else if (e.Property == DataGridRow.IsEditingProperty || 917e.Property == DataGridRow.IsMouseOverProperty || 1026public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow)); 1051typeof(DataGridRow), 1056DataGridRow row = (DataGridRow)sender; 1107public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1137public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow)); 1197DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); 1260DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 1299public static DataGridRow GetRowContainingElement(FrameworkElement element) 1301return DataGridHelper.FindVisualParent<DataGridRow>(element); 1346private ContainerTracking<DataGridRow> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
9public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 20public DataGridRow Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
17public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction) 35public DataGridRow Row 49private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
9public DataGridRowEventArgs(DataGridRow row) 14public DataGridRow Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
78DataGridRow owningRow = DataGridRowOwner; 155DataGridRow row = DataGridRowOwner; 306DataGridRow rowOwner = DataGridRowOwner; 324DataGridRow rowOwner = DataGridRowOwner; 463var row = DataGridRowOwner; 599DataGridRow parent = DataGridRowOwner; 612internal DataGridRow DataGridRowOwner 614get { return DataGridHelper.FindParent<DataGridRow>(this); } 621DataGridRow owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
49var row = details.DataGridRowOwner; 56DataGridRow.DetailsTemplateProperty, 67var row = details.DataGridRowOwner; 74DataGridRow.DetailsTemplateSelectorProperty, 89DataGridRow owner = DataGridRowOwner; 113DataGridRow rowOwner = DataGridRowOwner; 160DataGridRow owner = DataGridRowOwner; 180if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty) 184else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 207var row = DataGridRowOwner; 241var row = DataGridRowOwner; 275var row = DataGridRowOwner; 311DataGridRow owner = DataGridRowOwner; 324internal DataGridRow DataGridRowOwner 326get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
211DataGridRow parent = ParentRow; 259if (e.Property == DataGridRow.HeaderProperty || e.Property == ContentProperty) 263else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 267else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 271else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 279else if (e.Property == DataGridRow.IsSelectedProperty) 303e.Property == DataGridRow.IsEditingProperty || 304e.Property == DataGridRow.IsMouseOverProperty || 326DataGridRow.HeaderProperty); 335var row = header.ParentRow; 342DataGridRow.HeaderTemplateProperty, 353var row = header.ParentRow; 360DataGridRow.HeaderTemplateSelectorProperty, 376DataGridRow.HeaderStyleProperty, 403var row = ParentRow; 421var row = ParentRow; 435var row = ParentRow; 449var row = ParentRow; 537DataGridRow parent = header.ParentRow; 561DataGridRow parentRow = ParentRow; 646DataGridRow parent = ParentRow; 679private DataGridRow PreviousRow 683DataGridRow row = ParentRow; 692return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1); 705private DataGridRow RowToResize(object gripper) 713DataGridRow rowToResize = RowToResize(sender); 723DataGridRow rowToResize = RowToResize(sender); 734DataGridRow rowToResize = RowToResize(sender); 744DataGridRow rowToResize = RowToResize(sender); 762internal DataGridRow ParentRow 766return DataGridHelper.FindParent<DataGridRow>(this); 774DataGridRow parent = ParentRow;