395 references to DataGrid
Microsoft.VisualStudio.LanguageServices (6)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (2)
69internal System.Windows.Controls.DataGrid Members; 307this.Members = ((System.Windows.Controls.DataGrid)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (2)
55internal System.Windows.Controls.DataGrid MemberSelectionGrid; 135this.MemberSelectionGrid = ((System.Windows.Controls.DataGrid)(target));
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
302public DataGrid Members => _dialog.Members;
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
82public DataGrid Members => _dialog.MemberSelectionControl.MemberSelectionGrid;
PresentationFramework (389)
MS\Internal\Data\PropertyPathWorker.cs (1)
949parent == DataGrid.NewItemPlaceholder)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
24public DataGridAutomationPeer(DataGrid owner) 298private DataGrid OwningDataGrid 302return (DataGrid)Owner;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
835return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 839private DataGrid OwningDataGrid 852DataGrid dataGrid = this.OwningDataGrid;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
224internal DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
270private DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
363DataGrid dataGrid = this.OwningDataGrid; 567return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 580private DataGrid OwningDataGrid 585return (DataGrid)gridPeer.Owner;
System\Windows\Controls\DataGrid.cs (142)
38Type ownerType = typeof(DataGrid); 40DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(DataGrid))); 70CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy))); 72EventManager.RegisterClassHandler(typeof(DataGrid), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true); 138DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 153DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader)); 171typeof(DataGrid), 191typeof(DataGrid), 197((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 470((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter); 478((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 486((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 494((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 502((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 510((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders); 518((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid); 534((DataGrid)d).OnItemTemplateChanged(null, null); 543((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 551((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders); 559((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 567((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter); 575((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter); 695typeof(DataGrid), 714typeof(DataGrid), 733typeof(DataGrid), 897DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 906if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 908return d.GetValue(DataGrid.RowStyleProperty); 927DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1009DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged))); 1018if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1020return d.GetValue(DataGrid.RowStyleSelectorProperty); 1028DataGrid dataGrid = (DataGrid)d; 1052DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1070DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged))); 1078DataGrid dataGrid = (DataGrid)d; 1102DependencyProperty.Register("RowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1117DependencyProperty.Register("MinRowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1161var dataGrid = row.DataGridOwner; 1202DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged))); 1217DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 1237DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged)); 1252DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All)); 1259var dataGrid = ((DataGrid)d); 1391DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1406DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1421DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1436DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1451DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1518public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1532public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2029typeof(DataGrid), 2051public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2057public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2064public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2079((DataGrid)sender).OnCanExecuteBeginEdit(e); 2084((DataGrid)sender).OnExecutedBeginEdit(e); 2284((DataGrid)sender).OnCanExecuteCommitEdit(e); 2289((DataGrid)sender).OnExecutedCommitEdit(e); 2488((DataGrid)sender).OnCanExecuteCancelEdit(e); 2493((DataGrid)sender).OnExecutedCancelEdit(e); 2580((DataGrid)sender).OnCanExecuteDelete(e); 2585((DataGrid)sender).OnExecutedDelete(e); 2774DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2781((DataGrid)d).CancelAnyEdit(); 2810DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2814DataGrid dataGrid = (DataGrid)d; 2853DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2857DataGrid dataGrid = (DataGrid)d; 2886DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2890DataGrid dataGrid = (DataGrid)d; 3457DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3461((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3466return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3469private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3507DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3517return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3877return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3897DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3912DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3927DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3942DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4044DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4065typeof(DataGrid), 4331DataGrid dataGrid = (DataGrid)sender; 4338DataGrid dataGrid = (DataGrid)sender; 4442DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4446DataGrid dataGrid = (DataGrid)d; 4504DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4508DataGrid dataGrid = (DataGrid)d; 5304internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5323private DataGrid _dataGrid; 5414((DataGrid)d).UpdateVisualState(); 5424((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6191DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6344((DataGrid)sender).OnAnyMouseUp(e); 6984public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7072typeof(DataGrid), 7087DataGrid dataGrid = (DataGrid)d; 7099DataGrid dataGrid = (DataGrid)d; 7487DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7619DataGrid dataGrid = (DataGrid)d; 7808DataGrid.GenerateColumns( 7859DataGrid.GenerateColumns( 7875DataGrid dataGrid, 7917DataGrid dataGrid = (DataGrid)d; 7940typeof(DataGrid), 7961DataGrid dataGrid = (DataGrid)d; 7979((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 8000typeof(DataGrid), 8059typeof(DataGrid), 8068DataGrid dataGrid = (DataGrid)d; 8084if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8086return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8107typeof(DataGrid), 8117((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8128DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8143DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8158DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8227DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8246((DataGrid)target).OnCanExecuteCopy(args); 8261((DataGrid)target).OnExecutedCopy(args); 8420typeof(DataGrid), 8451((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8466typeof(DataGrid),
System\Windows\Controls\DataGridCell.cs (21)
94DataGrid dataGrid = _owner.DataGridOwner; 222var dataGrid = cell.DataGridOwner; 253else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 257else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 265else if (e.Property == DataGrid.IsKeyboardFocusWithinProperty) 302DataGrid.CellStyleProperty); 502var dataGrid = row.DataGridOwner; 533var dataGrid = cell.DataGridOwner; 543DataGrid.IsReadOnlyProperty); 554DataGrid owner = cell.DataGridOwner; 567DataGrid owner = cell.DataGridOwner; 628DataGrid dataGridOwner = DataGridOwner; 673DataGrid dataGrid = cell.DataGridOwner; 792DataGrid dataGridOwner = DataGridOwner; 828DataGrid dataGridOwner = DataGridOwner; 862DataGrid dataGrid = DataGridOwner; 904DataGrid dataGridOwner = DataGridOwner; 931DataGrid dataGridOwner = DataGridOwner; 1073internal DataGrid DataGridOwner 1079DataGrid dataGridOwner = _owner.DataGridOwner; 1082dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid;
System\Windows\Controls\DataGridCellInfo.cs (9)
46DataGrid owner = cell.DataGridOwner; 52internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 63internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 103private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 115internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 216internal bool IsValidForDataGrid(DataGrid dataGrid) 218DataGrid owner = Owner; 265private DataGrid Owner 271return (DataGrid)_owner.Target;
System\Windows\Controls\DataGridCellsPanel.cs (26)
162DataGrid parentDataGrid = ParentDataGrid; 225DataGrid parentDataGrid = ParentDataGrid; 596DataGrid parentDataGrid = ParentDataGrid; 828DataGrid parentDataGrid = ParentDataGrid; 960DataGrid dataGrid = ParentDataGrid; 1031DataGrid parentDataGrid = ParentDataGrid; 1287DataGrid parentDataGrid = ParentDataGrid; 1303DataGrid parentDataGrid = ParentDataGrid; 1362DataGrid parentDataGrid = ParentDataGrid; 1568DataGrid parentDataGrid = ParentDataGrid; 1684DataGrid dataGrid = ParentDataGrid; 1696DataGrid dataGrid = ParentDataGrid; 1715DataGrid dataGrid = ParentDataGrid; 1727DataGrid dataGrid = ParentDataGrid; 1746DataGrid dataGrid = ParentDataGrid; 1758DataGrid dataGrid = ParentDataGrid; 1838DataGrid parentDataGrid = ParentDataGrid; 1918DataGrid parentDataGrid = ParentDataGrid; 1982DataGrid dataGrid = ParentDataGrid; 1999DataGrid parentDataGrid = ParentDataGrid; 2141DataGrid parentDataGrid = ParentDataGrid; 2231DataGrid parentDataGrid = ParentDataGrid; 2245DataGrid parentDataGrid = ParentDataGrid; 2388DataGrid parentDataGrid = ParentDataGrid; 2401private DataGrid ParentDataGrid 2451private DataGrid _parentDataGrid;
System\Windows\Controls\DataGridColumn.cs (30)
59DataGrid.ColumnHeaderStyleProperty); 134DataGrid.CellStyleProperty); 168DataGrid.IsReadOnlyProperty); 225DataGrid dataGrid = column.DataGridOwner; 313DataGrid dataGrid = column.DataGridOwner; 352DataGrid dataGrid = column.DataGridOwner; 395DataGrid.ColumnWidthProperty); 423DataGrid.MinColumnWidthProperty); 437DataGrid.MaxColumnWidthProperty); 816if (e.Property == DataGrid.MaxColumnWidthProperty || e.Property == MaxWidthProperty) 820else if (e.Property == DataGrid.MinColumnWidthProperty || e.Property == MinWidthProperty) 824else if (e.Property == DataGrid.ColumnWidthProperty || e.Property == WidthProperty) 828else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty) 832else if (e.Property == DataGrid.CellStyleProperty || e.Property == CellStyleProperty) 836else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 840else if (e.Property == DataGrid.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty) 848else if (e.Property == DataGrid.CanUserSortColumnsProperty) 852else if (e.Property == DataGrid.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty) 856else if (e.Property == DataGrid.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty) 872DataGrid dataGridOwner = column.DataGridOwner; 933protected internal DataGrid DataGridOwner 1061BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(DataGrid.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers); 1064return column.DataGridOwner.GetValue(DataGrid.CanUserSortColumnsProperty); 1073DataGrid.CanUserSortColumnsProperty); 1281DataGrid dataGrid = column.DataGridOwner; 1324DataGrid.CanUserReorderColumnsProperty); 1350DataGrid.DragIndicatorStyleProperty); 1446var owner = DataGridOwner; 1483DataGrid.CanUserResizeColumnsProperty); 1553private 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)
19internal DataGridColumnCollection(DataGrid dataGridOwner) 180else if (e.Property == DataGrid.FrozenColumnCountProperty) 192else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 196else if (e.Property == DataGrid.CellsPanelHorizontalOffsetProperty) 200else if (e.Property == DataGrid.HorizontalScrollOffsetProperty || string.Equals(propertyName, "ViewportWidth", StringComparison.Ordinal)) 769private DataGrid DataGridOwner 2407DataGrid dataGrid = DataGridOwner; 2450DataGrid dataGrid = DataGridOwner; 2533private DataGrid _dataGridOwner;
System\Windows\Controls\DataGridHelper.cs (1)
44public static bool IsGridLineVisible(DataGrid dataGrid, bool isHorizontal)
System\Windows\Controls\DataGridRow.cs (31)
192var dataGrid = DataGridOwner; 436internal void PrepareRow(object item, DataGrid owningDataGrid) 478internal void ClearRow(DataGrid owningDataGrid) 618DataGrid.RowHeaderStyleProperty); 629DataGrid.RowHeaderTemplateProperty); 640DataGrid.RowHeaderTemplateSelectorProperty); 656DataGrid.RowBackgroundProperty); 665DataGrid.AlternatingRowBackgroundProperty); 681DataGrid.RowValidationErrorTemplateProperty); 692DataGrid.RowDetailsTemplateProperty); 703DataGrid.RowDetailsTemplateSelectorProperty); 714DataGrid.RowDetailsVisibilityModeProperty); 747var owningDataGrid = row.DataGridOwner; 805Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 825var dataGrid = row.DataGridOwner; 878if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 883else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 887else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 891else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 895else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 899else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 904else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 909else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 928e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1086DataGrid grid = row.DataGridOwner; 1196DataGrid dataGrid = DataGridOwner; 1264DataGrid dataGrid = DataGridOwner; 1312DataGrid dataGridOwner = DataGridOwner; 1335internal DataGrid DataGridOwner 1373private DataGrid _owner;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
136value = DataGrid.NewItemPlaceholder;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
98var dataGridOwner = DataGridOwner; 109NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(DataGrid.CellStyleProperty, null, null), DataGridNotificationTarget.Cells); 201DataGrid.RowHeightProperty); 212DataGrid.MinRowHeightProperty); 389else if (e.Property == DataGrid.FrozenColumnCountProperty || 391e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 392e.Property == DataGrid.HorizontalScrollOffsetProperty || 406else if (e.Property == DataGrid.RowHeightProperty || e.Property == HeightProperty) 410else if (e.Property == DataGrid.MinRowHeightProperty || e.Property == MinHeightProperty) 414else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 472var dataGrid = row.DataGridOwner; 516DataGrid.EnableColumnVirtualizationProperty); 539DataGrid dataGrid = DataGridOwner; 596internal DataGrid DataGridOwner 623DataGrid owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
190DataGrid dataGrid = column.DataGridOwner; 297DataGrid dataGrid = header.Column.DataGridOwner; 331DataGrid dataGrid = resizingColumn.DataGridOwner; 348DataGrid dataGrid = header.Column.DataGridOwner; 425else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 429else if (e.Property == DataGrid.ColumnHeaderHeightProperty || e.Property == HeightProperty) 438else if (e.Property == DataGrid.CanUserResizeColumnsProperty) 477DataGrid dataGrid = Column.DataGridOwner; 492DataGrid dataGridOwner = Column.DataGridOwner; 513DataGrid dataGrid = Column.DataGridOwner; 531DataGrid dataGrid = Column.DataGridOwner; 544DataGrid dataGrid = Column.DataGridOwner; 563DataGrid dataGrid = Column.DataGridOwner; 674DataGrid dataGrid = null; 697DataGrid.ColumnHeaderStyleProperty); 784DataGrid dataGrid = null; 805DataGrid.ColumnHeaderHeightProperty); 1113DataGrid dataGridOwner = column.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
67DataGrid grid = ParentDataGrid; 145DataGrid dataGrid = ParentDataGrid; 297else if (e.Property == DataGrid.FrozenColumnCountProperty || 299e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 305else if (e.Property == DataGrid.HorizontalScrollOffsetProperty) 318else if (e.Property == DataGrid.CellsPanelActualWidthProperty) 322else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 349if (d is DataGrid && 350(e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGrid.ColumnHeaderHeightProperty) ) 390DataGrid.EnableColumnVirtualizationProperty); 949DataGrid dataGrid = ParentDataGrid; 1036internal DataGrid ParentDataGrid 1042_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1063private DataGrid _parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
50var dataGrid = row != null ? row.DataGridOwner : null; 58DataGrid.RowDetailsTemplateProperty); 68var dataGrid = row != null ? row.DataGridOwner : null; 76DataGrid.RowDetailsTemplateSelectorProperty); 114DataGrid dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null; 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) 213var dataGrid = row.DataGridOwner; 247var dataGrid = row.DataGridOwner; 281var dataGrid = row.DataGridOwner; 305private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
185DataGrid dataGridOwner = DataGridOwner; 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) 275else if (e.Property == DataGrid.RowHeaderWidthProperty || e.Property == WidthProperty) 283else if (e.Property == DataGrid.CanUserResizeRowsProperty) 287else if (e.Property == DataGrid.RowHeaderActualWidthProperty) 302else if (e.Property == DataGrid.CurrentItemProperty || 305e.Property == DataGrid.IsKeyboardFocusWithinProperty) 336var dataGrid = row != null ? row.DataGridOwner : null; 344DataGrid.RowHeaderTemplateProperty); 354var dataGrid = row != null ? row.DataGridOwner : null; 362DataGrid.RowHeaderTemplateSelectorProperty); 378DataGrid.RowHeaderStyleProperty); 392DataGrid.RowHeaderWidthProperty); 406var dataGrid = row.DataGridOwner; 452var dataGrid = row.DataGridOwner; 560DataGrid dataGridOwner = DataGridOwner; 645DataGrid dataGrid = DataGridOwner; 664DataGrid dataGrid = DataGridOwner; 686DataGrid dataGrid = row.DataGridOwner; 770private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
41DataGrid dataGrid = Owner; 76DataGrid dataGrid = Owner; 135internal DataGrid Owner 141_owner = ItemsControl.GetItemsOwner(this) as DataGrid; 152private DataGrid _owner;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
43internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
System\Windows\Controls\SelectedCellsCollection.cs (1)
34internal SelectedCellsCollection(DataGrid owner) : base(owner)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
22internal VirtualizedCellInfoCollection(DataGrid owner) 35private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 49internal static VirtualizedCellInfoCollection MakeEmptyCollection(DataGrid owner) 233public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 293private DataGrid _owner; 1312internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1318internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1324protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1556protected DataGrid Owner 1603private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1651protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1661private DataGrid _owner;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12382DataGrid dg = ic as DataGrid;
System\Windows\SystemResourceKey.cs (4)
2027_focusBorderBrushKey = new ComponentResourceKey(typeof(DataGrid), "FocusBorderBrushKey"); 2040_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(DataGrid), "TextBlockComboBoxStyleKey"); 2065_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnFloatingHeaderStyleKey"); 2078_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnHeaderDropSeparatorStyleKey");