1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
814return new DataGridRow();
233 references to DataGridRow
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\ChangeSignatureDialog.xaml.cs (3)
206if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 209row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow; 223private static void FocusRow(DataGridRow row)
PresentationFramework (230)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
373internal void RaiseAutomationRowInvokeEvents(DataGridRow row) 384internal void RaiseAutomationCellInvokeEvents(DataGridColumn column, DataGridRow row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
419DataGridRow row = GetWrapper() as DataGridRow;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
25public DataGridRowAutomationPeer(DataGridRow owner) 126private DataGridRow OwningDataGridRow 130return (DataGridRow)Owner;
System\Windows\Controls\DataGrid.cs (74)
619DataGridRow row = container as DataGridRow; 636ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 805return item is DataGridRow; 826DataGridRow row = (DataGridRow)element; 837row.ClearValue(DataGridRow.IsNewItemPropertyKey); 856DataGridRow row = (DataGridRow)element; 860row.ClearValue(DataGridRow.IsNewItemPropertyKey); 875ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 1153var row = e.Row; 1163var row = (DataGridRow)arg; 1184var row = e.Row; 1304_itemAttachedStorage.SetValue(item, DataGridRow.DetailsVisibilityProperty, detailsVisibility); 1306var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1321if (_itemAttachedStorage.TryGetValue(item, DataGridRow.DetailsVisibilityProperty, out detailsVisibility)) 1326var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1350_itemAttachedStorage.ClearValue(item, DataGridRow.DetailsVisibilityProperty); 1352var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1355row.ClearValue(DataGridRow.DetailsVisibilityProperty); 1637DataGridRow row = _rowTrackingRoot.Container; 1658DataGridRow row = ContainerFromItemInfo(info) as DataGridRow; 1663row = ContainerFromItemInfo(info) as DataGridRow; 1813DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 1915DataGridRow row = _rowTrackingRoot.Container; 1932DataGridRow row = _rowTrackingRoot.Container; 3083internal bool IsCurrent(DataGridRow row, DataGridColumn column = null) 3811DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3963internal void OnLoadingRowDetailsWrapper(DataGridRow row) 3976internal void OnUnloadingRowDetailsWrapper(DataGridRow row) 4020var row = e.Row; 4087ContainerTracking<DataGridRow> tracker = _rowTrackingRoot; 4090DataGridRow row = tracker.Container; 4606ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4624ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 4627DataGridRow row = rowTracker.Container; 4760internal void HandleSelectionForRowHeaderAndDetailsInput(DataGridRow row, bool startDragging) 5890DataGridRow focusRow = DataGridHelper.FindVisualParent<DataGridRow>(focusContainer); 6186DataGridRow startingRow = startingElement as DataGridRow; 6189startingRow = DataGridHelper.FindVisualParent<DataGridRow>(startingElement); 6204DataGridRow targetRowElement = targetElement as DataGridRow; 6207targetRowElement = DataGridHelper.FindVisualParent<DataGridRow>(targetElement); 6273DataGridRow row = MouseOverRow; 6287DataGridRow row = MouseOverRow; 6311DataGridRow row = GetRowNearMouse(); 6400DataGridRow parentRow = rowHeader.ParentRow; 6415private DataGridRow GetRowNearMouse() 6428DataGridRow row = null; 6433row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6437row = itemsHost.Children[i] as DataGridRow; 6477DataGridRow row = null; 6482row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6486row = itemsHost.Children[i] as DataGridRow; 6554private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6608private DataGridRow MouseOverRow 6613DataGridRow row = null; 6617row = DataGridHelper.FindVisualParent<DataGridRow>(element); 7041DataGridRow row = (DataGridRow)info.Container; 7054DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 8547ContainerTracking<DataGridRow> rowTracker = _rowTrackingRoot; 8643private ContainerTracking<DataGridRow> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
23public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs) 50public DataGridRow Row 65private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
84internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 95internal void PrepareCell(object item, DataGridRow ownerRow, int index) 143internal void ClearCell(DataGridRow ownerRow) 387var row = RowOwner; 505var row = RowOwner; 1107internal DataGridRow RowOwner 1116DataGridRow row = RowOwner; 1146private DataGridRow _owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
24public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 52public DataGridRow Row 75private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1858DataGridRow row = presenter.DataGridRowOwner; 2415DataGridRow row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
622DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow; 637public FrameworkElement GetCellContent(DataGridRow dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
25public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 44public DataGridRow Row 66private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
101VisibilityProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnCoerceVisibility)); 102DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(typeof(DataGridRow))); 103ItemsPanelProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel))))); 104FocusableProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 105BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground)); 106BindingGroupProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged)); 109SnapsToDevicePixelsProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange)); 110IsMouseOverPropertyKey.OverrideMetadata(typeof(DataGridRow), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 111VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize))); 112AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 120_tracker = new ContainerTracking<DataGridRow>(this); 141DependencyProperty.Register("Item", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 176public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 281DependencyProperty.Register("Header", typeof(object), typeof(DataGridRow), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 305DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle)); 320DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate)); 335DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector)); 350DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate)); 369DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate)); 384DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector)); 399DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 527internal ContainerTracking<DataGridRow> Tracker 616var row = (DataGridRow)d; 627var row = (DataGridRow)d; 638var row = (DataGridRow)d; 649var row = (DataGridRow)d; 679var row = (DataGridRow)d; 690var row = (DataGridRow)d; 701var row = (DataGridRow)d; 712var row = (DataGridRow)d; 750var row = (DataGridRow)d; 767var row = (DataGridRow)d; 784(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 789(d as DataGridRow).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 794DataGridRow row = (DataGridRow)d; 816var row = (DataGridRow)d; 828var row = (DataGridRow)arg; 930else if (e.Property == DataGridRow.IsEditingProperty || 931e.Property == DataGridRow.IsMouseOverProperty || 1052public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow)); 1077typeof(DataGridRow), 1082DataGridRow row = (DataGridRow)sender; 1136public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1166public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow)); 1226DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged)); 1295DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(DataGridRow), new FrameworkPropertyMetadata(false)); 1334public static DataGridRow GetRowContainingElement(FrameworkElement element) 1336return DataGridHelper.FindVisualParent<DataGridRow>(element); 1381private ContainerTracking<DataGridRow> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
13public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 24public DataGridRow Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
22public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction) 40public DataGridRow Row 54private DataGridRow _dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
13public DataGridRowEventArgs(DataGridRow row) 18public DataGridRow Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
83DataGridRow owningRow = DataGridRowOwner; 160DataGridRow row = DataGridRowOwner; 311DataGridRow rowOwner = DataGridRowOwner; 329DataGridRow rowOwner = DataGridRowOwner; 471var row = DataGridRowOwner; 605DataGridRow parent = DataGridRowOwner; 618internal DataGridRow DataGridRowOwner 620get { return DataGridHelper.FindParent<DataGridRow>(this); } 627DataGridRow owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
53var row = details.DataGridRowOwner; 60DataGridRow.DetailsTemplateProperty, 71var row = details.DataGridRowOwner; 78DataGridRow.DetailsTemplateSelectorProperty, 93DataGridRow owner = DataGridRowOwner; 117DataGridRow rowOwner = DataGridRowOwner; 164DataGridRow owner = DataGridRowOwner; 184if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty) 188else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 211var row = DataGridRowOwner; 245var row = DataGridRowOwner; 279var row = DataGridRowOwner; 313DataGridRow owner = DataGridRowOwner; 326internal DataGridRow DataGridRowOwner 328get { return DataGridHelper.FindParent<DataGridRow>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
216DataGridRow parent = ParentRow; 264if (e.Property == DataGridRow.HeaderProperty || e.Property == ContentProperty) 268else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 272else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 276else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 284else if (e.Property == DataGridRow.IsSelectedProperty) 308e.Property == DataGridRow.IsEditingProperty || 309e.Property == DataGridRow.IsMouseOverProperty || 331DataGridRow.HeaderProperty); 340var row = header.ParentRow; 347DataGridRow.HeaderTemplateProperty, 358var row = header.ParentRow; 365DataGridRow.HeaderTemplateSelectorProperty, 381DataGridRow.HeaderStyleProperty, 408var row = ParentRow; 426var row = ParentRow; 440var row = ParentRow; 454var row = ParentRow; 542DataGridRow parent = header.ParentRow; 566DataGridRow parentRow = ParentRow; 651DataGridRow parent = ParentRow; 684private DataGridRow PreviousRow 688DataGridRow row = ParentRow; 697return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1); 710private DataGridRow RowToResize(object gripper) 718DataGridRow rowToResize = RowToResize(sender); 728DataGridRow rowToResize = RowToResize(sender); 739DataGridRow rowToResize = RowToResize(sender); 749DataGridRow rowToResize = RowToResize(sender); 767internal DataGridRow ParentRow 771return DataGridHelper.FindParent<DataGridRow>(this); 779DataGridRow parent = ParentRow;