1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
811return 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)
368internal void RaiseAutomationRowInvokeEvents(DataGridRow row) 379internal 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; 633ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 802return item is DataGridRow; 823DataGridRow row = (DataGridRow)element; 834row.ClearValue(DataGridRow.IsNewItemPropertyKey); 853DataGridRow row = (DataGridRow)element; 857row.ClearValue(DataGridRow.IsNewItemPropertyKey); 872ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 1150var row = e.Row; 1160var row = (DataGridRow)arg; 1181var row = e.Row; 1301_itemAttachedStorage.SetValue(item, DataGridRow.DetailsVisibilityProperty, detailsVisibility); 1303var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1318if (_itemAttachedStorage.TryGetValue(item, DataGridRow.DetailsVisibilityProperty, out detailsVisibility)) 1323var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1347_itemAttachedStorage.ClearValue(item, DataGridRow.DetailsVisibilityProperty); 1349var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1352row.ClearValue(DataGridRow.DetailsVisibilityProperty); 1634DataGridRow row = _rowTrackingRoot.Container; 1655DataGridRow row = ContainerFromItemInfo(info) as DataGridRow; 1660row = ContainerFromItemInfo(info) as DataGridRow; 1810DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 1912DataGridRow row = _rowTrackingRoot.Container; 1929DataGridRow row = _rowTrackingRoot.Container; 3080internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 3808DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3960internal void OnLoadingRowDetailsWrapper(DataGridRow row) 3973internal void OnUnloadingRowDetailsWrapper(DataGridRow row) 4017var row = e.Row; 4084ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 4087DataGridRow row = tracker.Container; 4603ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4621ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4624DataGridRow row = rowTracker.Container; 4757internal void HandleSelectionForRowHeaderAndDetailsInput(DataGridRow row, bool startDragging) 5887DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6183DataGridRow startingRow = startingElement as DataGridRow; 6186startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6201DataGridRow targetRowElement = targetElement as DataGridRow; 6204targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6270DataGridRow row = MouseOverRow; 6284DataGridRow row = MouseOverRow; 6308DataGridRow row = GetRowNearMouse(); 6397DataGridRow parentRow = rowHeader.ParentRow; 6412private DataGridRow GetRowNearMouse() 6425DataGridRow row = null; 6430row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6434row = itemsHost.Children[i] as DataGridRow; 6474DataGridRow row = null; 6479row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6483row = itemsHost.Children[i] as DataGridRow; 6551private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6605private DataGridRow MouseOverRow 6610DataGridRow row = null; 6614row = DataGridHelper.FindVisualParent<DataGridRow>(element); 7038DataGridRow row = (DataGridRow)info.Container; 7051DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 8544ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 8640private 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) 380var row = RowOwner; 498var row = RowOwner; 1100internal DataGridRow RowOwner 1109DataGridRow row = RowOwner; 1139private 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)
1854DataGridRow row = presenter.DataGridRowOwner; 2411DataGridRow 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 612var row = (DataGridRow)d; 623var row = (DataGridRow)d; 634var row = (DataGridRow)d; 645var row = (DataGridRow)d; 675var row = (DataGridRow)d; 686var row = (DataGridRow)d; 697var row = (DataGridRow)d; 708var row = (DataGridRow)d; 746var row = (DataGridRow)d; 763var row = (DataGridRow)d; 780(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 785(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 790DataGridRow row = (DataGridRow)d; 812var row = (DataGridRow)d; 824var row = (DataGridRow)arg; 926else if (e.Property == DataGridRow.IsEditingProperty || 927e.Property == DataGridRow.IsMouseOverProperty || 1048public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow)); 1073typeof(DataGridRow), 1078DataGridRow row = (DataGridRow)sender; 1132public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1162public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow)); 1222DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); 1291DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 1330public static DataGridRow GetRowContainingElement(FrameworkElement element) 1332return DataGridHelper.FindVisualParent<DataGridRow>(element); 1377private 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; 466var row = DataGridRowOwner; 600DataGridRow parent = DataGridRowOwner; 613internal DataGridRow DataGridRowOwner 615get { return DataGridHelper.FindParent<DataGridRow>(this); } 622DataGridRow 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; 309DataGridRow owner = DataGridRowOwner; 322internal DataGridRow DataGridRowOwner 324get { 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;