389 references to DataGrid
PresentationFramework (389)
MS\Internal\Data\PropertyPathWorker.cs (1)
955parent == DataGrid.NewItemPlaceholder)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
29public DataGridAutomationPeer(DataGrid owner) 303private DataGrid OwningDataGrid 307return (DataGrid)Owner;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
841return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 845private DataGrid OwningDataGrid 858DataGrid dataGrid = this.OwningDataGrid;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
230internal DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
272private DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
368DataGrid dataGrid = this.OwningDataGrid; 572return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 585private DataGrid OwningDataGrid 590return (DataGrid)gridPeer.Owner;
System\Windows\Controls\DataGrid.cs (142)
41Type ownerType = typeof(DataGrid); 43DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(DataGrid))); 73CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy))); 75EventManager.RegisterClassHandler(typeof(DataGrid), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true); 141DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 156DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader)); 174typeof(DataGrid), 194typeof(DataGrid), 200((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 473((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter); 481((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 489((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 497((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 505((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 513((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders); 521((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid); 537((DataGrid)d).OnItemTemplateChanged(null, null); 546((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 554((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders); 562((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 570((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter); 578((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter); 698typeof(DataGrid), 717typeof(DataGrid), 736typeof(DataGrid), 900DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 909if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 911return d.GetValue(DataGrid.RowStyleProperty); 930DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1012DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged))); 1021if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1023return d.GetValue(DataGrid.RowStyleSelectorProperty); 1031DataGrid dataGrid = (DataGrid)d; 1055DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1073DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged))); 1081DataGrid dataGrid = (DataGrid)d; 1105DependencyProperty.Register("RowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1120DependencyProperty.Register("MinRowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1164var dataGrid = row.DataGridOwner; 1205DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged))); 1220DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 1240DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged)); 1255DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All)); 1262var dataGrid = ((DataGrid)d); 1394DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1409DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1424DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1439DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1454DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1521public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1535public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2032typeof(DataGrid), 2054public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2060public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2067public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2082((DataGrid)sender).OnCanExecuteBeginEdit(e); 2087((DataGrid)sender).OnExecutedBeginEdit(e); 2287((DataGrid)sender).OnCanExecuteCommitEdit(e); 2292((DataGrid)sender).OnExecutedCommitEdit(e); 2491((DataGrid)sender).OnCanExecuteCancelEdit(e); 2496((DataGrid)sender).OnExecutedCancelEdit(e); 2583((DataGrid)sender).OnCanExecuteDelete(e); 2588((DataGrid)sender).OnExecutedDelete(e); 2777DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2784((DataGrid)d).CancelAnyEdit(); 2813DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2817DataGrid dataGrid = (DataGrid)d; 2856DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2860DataGrid dataGrid = (DataGrid)d; 2889DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2893DataGrid dataGrid = (DataGrid)d; 3460DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3464((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3469return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3472private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3510DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3520return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3880return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3900DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3915DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3930DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3945DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4047DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4068typeof(DataGrid), 4334DataGrid dataGrid = (DataGrid)sender; 4341DataGrid dataGrid = (DataGrid)sender; 4445DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4449DataGrid dataGrid = (DataGrid)d; 4507DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4511DataGrid dataGrid = (DataGrid)d; 5307internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5326private DataGrid _dataGrid; 5417((DataGrid)d).UpdateVisualState(); 5427((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6194DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6347((DataGrid)sender).OnAnyMouseUp(e); 6987public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7075typeof(DataGrid), 7090DataGrid dataGrid = (DataGrid)d; 7102DataGrid dataGrid = (DataGrid)d; 7490DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7622DataGrid dataGrid = (DataGrid)d; 7811DataGrid.GenerateColumns( 7862DataGrid.GenerateColumns( 7878DataGrid dataGrid, 7920DataGrid dataGrid = (DataGrid)d; 7943typeof(DataGrid), 7964DataGrid dataGrid = (DataGrid)d; 7982((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 8003typeof(DataGrid), 8062typeof(DataGrid), 8071DataGrid dataGrid = (DataGrid)d; 8087if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8089return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8110typeof(DataGrid), 8120((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8131DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8146DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8161DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8230DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8249((DataGrid)target).OnCanExecuteCopy(args); 8264((DataGrid)target).OnExecutedCopy(args); 8423typeof(DataGrid), 8454((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8469typeof(DataGrid),
System\Windows\Controls\DataGridCell.cs (21)
101DataGrid dataGrid = _owner.DataGridOwner; 229var dataGrid = cell.DataGridOwner; 260else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 264else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 272else if (e.Property == DataGrid.IsKeyboardFocusWithinProperty) 309DataGrid.CellStyleProperty); 509var dataGrid = row.DataGridOwner; 540var dataGrid = cell.DataGridOwner; 550DataGrid.IsReadOnlyProperty); 561DataGrid owner = cell.DataGridOwner; 574DataGrid owner = cell.DataGridOwner; 635DataGrid dataGridOwner = DataGridOwner; 680DataGrid dataGrid = cell.DataGridOwner; 799DataGrid dataGridOwner = DataGridOwner; 835DataGrid dataGridOwner = DataGridOwner; 869DataGrid dataGrid = DataGridOwner; 911DataGrid dataGridOwner = DataGridOwner; 938DataGrid dataGridOwner = DataGridOwner; 1080internal DataGrid DataGridOwner 1086DataGrid dataGridOwner = _owner.DataGridOwner; 1089dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid;
System\Windows\Controls\DataGridCellInfo.cs (9)
51DataGrid owner = cell.DataGridOwner; 57internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 68internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 108private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 120internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 221internal bool IsValidForDataGrid(DataGrid dataGrid) 223DataGrid owner = Owner; 270private DataGrid Owner 276return (DataGrid)_owner.Target;
System\Windows\Controls\DataGridCellsPanel.cs (26)
166DataGrid parentDataGrid = ParentDataGrid; 229DataGrid parentDataGrid = ParentDataGrid; 600DataGrid parentDataGrid = ParentDataGrid; 832DataGrid parentDataGrid = ParentDataGrid; 964DataGrid dataGrid = ParentDataGrid; 1035DataGrid parentDataGrid = ParentDataGrid; 1291DataGrid parentDataGrid = ParentDataGrid; 1307DataGrid parentDataGrid = ParentDataGrid; 1366DataGrid parentDataGrid = ParentDataGrid; 1572DataGrid parentDataGrid = ParentDataGrid; 1688DataGrid dataGrid = ParentDataGrid; 1700DataGrid dataGrid = ParentDataGrid; 1719DataGrid dataGrid = ParentDataGrid; 1731DataGrid dataGrid = ParentDataGrid; 1750DataGrid dataGrid = ParentDataGrid; 1762DataGrid dataGrid = ParentDataGrid; 1842DataGrid parentDataGrid = ParentDataGrid; 1922DataGrid parentDataGrid = ParentDataGrid; 1986DataGrid dataGrid = ParentDataGrid; 2003DataGrid parentDataGrid = ParentDataGrid; 2145DataGrid parentDataGrid = ParentDataGrid; 2235DataGrid parentDataGrid = ParentDataGrid; 2249DataGrid parentDataGrid = ParentDataGrid; 2392DataGrid parentDataGrid = ParentDataGrid; 2405private DataGrid ParentDataGrid 2455private DataGrid _parentDataGrid;
System\Windows\Controls\DataGridColumn.cs (30)
62DataGrid.ColumnHeaderStyleProperty); 137DataGrid.CellStyleProperty); 171DataGrid.IsReadOnlyProperty); 228DataGrid dataGrid = column.DataGridOwner; 316DataGrid dataGrid = column.DataGridOwner; 355DataGrid dataGrid = column.DataGridOwner; 398DataGrid.ColumnWidthProperty); 426DataGrid.MinColumnWidthProperty); 440DataGrid.MaxColumnWidthProperty); 819if (e.Property == DataGrid.MaxColumnWidthProperty || e.Property == MaxWidthProperty) 823else if (e.Property == DataGrid.MinColumnWidthProperty || e.Property == MinWidthProperty) 827else if (e.Property == DataGrid.ColumnWidthProperty || e.Property == WidthProperty) 831else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty) 835else if (e.Property == DataGrid.CellStyleProperty || e.Property == CellStyleProperty) 839else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 843else if (e.Property == DataGrid.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty) 851else if (e.Property == DataGrid.CanUserSortColumnsProperty) 855else if (e.Property == DataGrid.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty) 859else if (e.Property == DataGrid.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty) 875DataGrid dataGridOwner = column.DataGridOwner; 936protected internal DataGrid DataGridOwner 1064BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(DataGrid.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers); 1067return column.DataGridOwner.GetValue(DataGrid.CanUserSortColumnsProperty); 1076DataGrid.CanUserSortColumnsProperty); 1284DataGrid dataGrid = column.DataGridOwner; 1327DataGrid.CanUserReorderColumnsProperty); 1353DataGrid.DragIndicatorStyleProperty); 1449var owner = DataGridOwner; 1486DataGrid.CanUserResizeColumnsProperty); 1556private DataGrid _dataGridOwner = null; // This property is updated by DataGrid when the column is added to the DataGrid.Columns collection
System\Windows\Controls\DataGridColumnCollection.cs (9)
23internal DataGridColumnCollection(DataGrid dataGridOwner) 184else if (e.Property == DataGrid.FrozenColumnCountProperty) 196else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 200else if (e.Property == DataGrid.CellsPanelHorizontalOffsetProperty) 204else if (e.Property == DataGrid.HorizontalScrollOffsetProperty || 774private DataGrid DataGridOwner 2412DataGrid dataGrid = DataGridOwner; 2455DataGrid dataGrid = DataGridOwner; 2538private DataGrid _dataGridOwner;
System\Windows\Controls\DataGridHelper.cs (1)
50public static bool IsGridLineVisible(DataGrid dataGrid, bool isHorizontal)
System\Windows\Controls\DataGridRow.cs (31)
196var dataGrid = DataGridOwner; 440internal void PrepareRow(object item, DataGrid owningDataGrid) 482internal void ClearRow(DataGrid owningDataGrid) 622DataGrid.RowHeaderStyleProperty); 633DataGrid.RowHeaderTemplateProperty); 644DataGrid.RowHeaderTemplateSelectorProperty); 660DataGrid.RowBackgroundProperty); 669DataGrid.AlternatingRowBackgroundProperty); 685DataGrid.RowValidationErrorTemplateProperty); 696DataGrid.RowDetailsTemplateProperty); 707DataGrid.RowDetailsTemplateSelectorProperty); 718DataGrid.RowDetailsVisibilityModeProperty); 751var owningDataGrid = row.DataGridOwner; 809Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 829var dataGrid = row.DataGridOwner; 882if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 887else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 891else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 895else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 899else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 903else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 908else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 913else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 932e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1090DataGrid grid = row.DataGridOwner; 1200DataGrid dataGrid = DataGridOwner; 1268DataGrid dataGrid = DataGridOwner; 1316DataGrid dataGridOwner = DataGridOwner; 1339internal DataGrid DataGridOwner 1377private DataGrid _owner;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
139value = DataGrid.NewItemPlaceholder;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
103var dataGridOwner = DataGridOwner; 114NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(DataGrid.CellStyleProperty, null, null), DataGridNotificationTarget.Cells); 206DataGrid.RowHeightProperty); 217DataGrid.MinRowHeightProperty); 394else if (e.Property == DataGrid.FrozenColumnCountProperty || 396e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 397e.Property == DataGrid.HorizontalScrollOffsetProperty || 411else if (e.Property == DataGrid.RowHeightProperty || e.Property == HeightProperty) 415else if (e.Property == DataGrid.MinRowHeightProperty || e.Property == MinHeightProperty) 419else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 477var dataGrid = row.DataGridOwner; 521DataGrid.EnableColumnVirtualizationProperty); 544DataGrid dataGrid = DataGridOwner; 601internal DataGrid DataGridOwner 628DataGrid owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
195DataGrid dataGrid = column.DataGridOwner; 302DataGrid dataGrid = header.Column.DataGridOwner; 336DataGrid dataGrid = resizingColumn.DataGridOwner; 353DataGrid dataGrid = header.Column.DataGridOwner; 430else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 434else if (e.Property == DataGrid.ColumnHeaderHeightProperty || e.Property == HeightProperty) 443else if (e.Property == DataGrid.CanUserResizeColumnsProperty) 482DataGrid dataGrid = Column.DataGridOwner; 497DataGrid dataGridOwner = Column.DataGridOwner; 518DataGrid dataGrid = Column.DataGridOwner; 536DataGrid dataGrid = Column.DataGridOwner; 549DataGrid dataGrid = Column.DataGridOwner; 568DataGrid dataGrid = Column.DataGridOwner; 679DataGrid dataGrid = null; 702DataGrid.ColumnHeaderStyleProperty); 789DataGrid dataGrid = null; 810DataGrid.ColumnHeaderHeightProperty); 1118DataGrid dataGridOwner = column.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
72DataGrid grid = ParentDataGrid; 150DataGrid dataGrid = ParentDataGrid; 302else if (e.Property == DataGrid.FrozenColumnCountProperty || 304e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 310else if (e.Property == DataGrid.HorizontalScrollOffsetProperty) 323else if (e.Property == DataGrid.CellsPanelActualWidthProperty) 327else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 354if (d is DataGrid && 355(e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGrid.ColumnHeaderHeightProperty) ) 395DataGrid.EnableColumnVirtualizationProperty); 954DataGrid dataGrid = ParentDataGrid; 1041internal DataGrid ParentDataGrid 1047_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1068private DataGrid _parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
54var dataGrid = row != null ? row.DataGridOwner : null; 62DataGrid.RowDetailsTemplateProperty); 72var dataGrid = row != null ? row.DataGridOwner : null; 80DataGrid.RowDetailsTemplateSelectorProperty); 118DataGrid dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null; 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) 217var dataGrid = row.DataGridOwner; 251var dataGrid = row.DataGridOwner; 285var dataGrid = row.DataGridOwner; 309private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
190DataGrid dataGridOwner = DataGridOwner; 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) 280else if (e.Property == DataGrid.RowHeaderWidthProperty || e.Property == WidthProperty) 288else if (e.Property == DataGrid.CanUserResizeRowsProperty) 292else if (e.Property == DataGrid.RowHeaderActualWidthProperty) 307else if (e.Property == DataGrid.CurrentItemProperty || 310e.Property == DataGrid.IsKeyboardFocusWithinProperty) 341var dataGrid = row != null ? row.DataGridOwner : null; 349DataGrid.RowHeaderTemplateProperty); 359var dataGrid = row != null ? row.DataGridOwner : null; 367DataGrid.RowHeaderTemplateSelectorProperty); 383DataGrid.RowHeaderStyleProperty); 397DataGrid.RowHeaderWidthProperty); 411var dataGrid = row.DataGridOwner; 457var dataGrid = row.DataGridOwner; 565DataGrid dataGridOwner = DataGridOwner; 650DataGrid dataGrid = DataGridOwner; 669DataGrid dataGrid = DataGridOwner; 691DataGrid dataGrid = row.DataGridOwner; 775private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
51DataGrid dataGrid = Owner; 86DataGrid dataGrid = Owner; 145internal DataGrid Owner 151_owner = ItemsControl.GetItemsOwner(this) as DataGrid; 162private DataGrid _owner;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
46internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
System\Windows\Controls\SelectedCellsCollection.cs (1)
39internal SelectedCellsCollection(DataGrid owner) : base(owner)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
26internal VirtualizedCellInfoCollection(DataGrid owner) 39private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 53internal static VirtualizedCellInfoCollection MakeEmptyCollection(DataGrid owner) 237public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 297private DataGrid _owner; 1316internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1322internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1328protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1560protected DataGrid Owner 1607private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1655protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1665private DataGrid _owner;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12387DataGrid dg = ic as DataGrid;
System\Windows\SystemResourceKey.cs (4)
1928_focusBorderBrushKey = new ComponentResourceKey(typeof(DataGrid), "FocusBorderBrushKey"); 1941_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(DataGrid), "TextBlockComboBoxStyleKey"); 1966_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnFloatingHeaderStyleKey"); 1979_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnHeaderDropSeparatorStyleKey");