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)
80public DataGrid Members => _dialog.MemberSelectionControl.MemberSelectionGrid;
PresentationFramework (389)
MS\Internal\Data\PropertyPathWorker.cs (1)
938parent == DataGrid.NewItemPlaceholder)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
23public DataGridAutomationPeer(DataGrid owner) 297private DataGrid OwningDataGrid 301return (DataGrid)Owner;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
831return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 835private DataGrid OwningDataGrid 848DataGrid dataGrid = this.OwningDataGrid;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
223internal DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
269private DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
362DataGrid dataGrid = this.OwningDataGrid; 566return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 579private DataGrid OwningDataGrid 584return (DataGrid)gridPeer.Owner;
System\Windows\Controls\DataGrid.cs (142)
37Type ownerType = typeof(DataGrid); 39DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(DataGrid))); 69CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy))); 71EventManager.RegisterClassHandler(typeof(DataGrid), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true); 137DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 152DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader)); 170typeof(DataGrid), 190typeof(DataGrid), 196((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 469((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter); 477((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells); 485((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns); 493((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders); 501((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders); 509((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders); 517((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid); 533((DataGrid)d).OnItemTemplateChanged(null, null); 542((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows); 550((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders); 558((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders); 566((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter); 574((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter); 691typeof(DataGrid), 710typeof(DataGrid), 729typeof(DataGrid), 893DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 902if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 904return d.GetValue(DataGrid.RowStyleProperty); 923DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1005DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged))); 1014if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1016return d.GetValue(DataGrid.RowStyleSelectorProperty); 1024DataGrid dataGrid = (DataGrid)d; 1048DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1066DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged))); 1074DataGrid dataGrid = (DataGrid)d; 1098DependencyProperty.Register("RowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1113DependencyProperty.Register("MinRowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1157var dataGrid = row.DataGridOwner; 1195DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged))); 1210DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 1230DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged)); 1245DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All)); 1252var dataGrid = ((DataGrid)d); 1381DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1396DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1411DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1426DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1441DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1508public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1522public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2023typeof(DataGrid), 2045public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2051public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2058public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2073((DataGrid)sender).OnCanExecuteBeginEdit(e); 2078((DataGrid)sender).OnExecutedBeginEdit(e); 2275((DataGrid)sender).OnCanExecuteCommitEdit(e); 2280((DataGrid)sender).OnExecutedCommitEdit(e); 2473((DataGrid)sender).OnCanExecuteCancelEdit(e); 2478((DataGrid)sender).OnExecutedCancelEdit(e); 2562((DataGrid)sender).OnCanExecuteDelete(e); 2567((DataGrid)sender).OnExecutedDelete(e); 2756DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2763((DataGrid)d).CancelAnyEdit(); 2792DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2796DataGrid dataGrid = (DataGrid)d; 2835DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2839DataGrid dataGrid = (DataGrid)d; 2868DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2872DataGrid dataGrid = (DataGrid)d; 3433DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3437((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3442return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3445private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3483DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3493return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3850return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3870DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3885DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3900DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3915DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4017DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4038typeof(DataGrid), 4301DataGrid dataGrid = (DataGrid)sender; 4308DataGrid dataGrid = (DataGrid)sender; 4412DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4416DataGrid dataGrid = (DataGrid)d; 4474DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4478DataGrid dataGrid = (DataGrid)d; 5265internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5284private DataGrid _dataGrid; 5375((DataGrid)d).UpdateVisualState(); 5385((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6149DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6302((DataGrid)sender).OnAnyMouseUp(e); 6943public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7031typeof(DataGrid), 7046DataGrid dataGrid = (DataGrid)d; 7058DataGrid dataGrid = (DataGrid)d; 7446DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7575DataGrid dataGrid = (DataGrid)d; 7764DataGrid.GenerateColumns( 7815DataGrid.GenerateColumns( 7831DataGrid dataGrid, 7873DataGrid dataGrid = (DataGrid)d; 7896typeof(DataGrid), 7917DataGrid dataGrid = (DataGrid)d; 7935((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 7956typeof(DataGrid), 8015typeof(DataGrid), 8024DataGrid dataGrid = (DataGrid)d; 8040if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8042return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8063typeof(DataGrid), 8073((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8084DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8099DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8114DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8183DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8202((DataGrid)target).OnCanExecuteCopy(args); 8217((DataGrid)target).OnExecutedCopy(args); 8376typeof(DataGrid), 8407((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8422typeof(DataGrid),
System\Windows\Controls\DataGridCell.cs (21)
93DataGrid dataGrid = _owner.DataGridOwner; 218var dataGrid = cell.DataGridOwner; 249else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 253else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 261else if (e.Property == DataGrid.IsKeyboardFocusWithinProperty) 298DataGrid.CellStyleProperty); 498var dataGrid = row.DataGridOwner; 529var dataGrid = cell.DataGridOwner; 539DataGrid.IsReadOnlyProperty); 550DataGrid owner = cell.DataGridOwner; 563DataGrid owner = cell.DataGridOwner; 618DataGrid dataGridOwner = DataGridOwner; 663DataGrid dataGrid = cell.DataGridOwner; 779DataGrid dataGridOwner = DataGridOwner; 815DataGrid dataGridOwner = DataGridOwner; 849DataGrid dataGrid = DataGridOwner; 895DataGrid dataGridOwner = DataGridOwner; 922DataGrid dataGridOwner = DataGridOwner; 1058internal DataGrid DataGridOwner 1064DataGrid dataGridOwner = _owner.DataGridOwner; 1067dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid;
System\Windows\Controls\DataGridCellInfo.cs (9)
45DataGrid owner = cell.DataGridOwner; 51internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner) 62internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 102private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item) 114internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column, DataGrid owner) 215internal bool IsValidForDataGrid(DataGrid dataGrid) 217DataGrid owner = Owner; 264private DataGrid Owner 270return (DataGrid)_owner.Target;
System\Windows\Controls\DataGridCellsPanel.cs (26)
160DataGrid parentDataGrid = ParentDataGrid; 223DataGrid parentDataGrid = ParentDataGrid; 594DataGrid parentDataGrid = ParentDataGrid; 826DataGrid parentDataGrid = ParentDataGrid; 958DataGrid dataGrid = ParentDataGrid; 1029DataGrid parentDataGrid = ParentDataGrid; 1285DataGrid parentDataGrid = ParentDataGrid; 1301DataGrid parentDataGrid = ParentDataGrid; 1356DataGrid parentDataGrid = ParentDataGrid; 1562DataGrid parentDataGrid = ParentDataGrid; 1678DataGrid dataGrid = ParentDataGrid; 1690DataGrid dataGrid = ParentDataGrid; 1709DataGrid dataGrid = ParentDataGrid; 1721DataGrid dataGrid = ParentDataGrid; 1740DataGrid dataGrid = ParentDataGrid; 1752DataGrid dataGrid = ParentDataGrid; 1832DataGrid parentDataGrid = ParentDataGrid; 1912DataGrid parentDataGrid = ParentDataGrid; 1976DataGrid dataGrid = ParentDataGrid; 1993DataGrid parentDataGrid = ParentDataGrid; 2135DataGrid parentDataGrid = ParentDataGrid; 2225DataGrid parentDataGrid = ParentDataGrid; 2239DataGrid parentDataGrid = ParentDataGrid; 2382DataGrid parentDataGrid = ParentDataGrid; 2395private DataGrid ParentDataGrid 2445private DataGrid _parentDataGrid;
System\Windows\Controls\DataGridColumn.cs (30)
58DataGrid.ColumnHeaderStyleProperty); 133DataGrid.CellStyleProperty); 167DataGrid.IsReadOnlyProperty); 224DataGrid dataGrid = column.DataGridOwner; 312DataGrid dataGrid = column.DataGridOwner; 351DataGrid dataGrid = column.DataGridOwner; 394DataGrid.ColumnWidthProperty); 422DataGrid.MinColumnWidthProperty); 436DataGrid.MaxColumnWidthProperty); 815if (e.Property == DataGrid.MaxColumnWidthProperty || e.Property == MaxWidthProperty) 819else if (e.Property == DataGrid.MinColumnWidthProperty || e.Property == MinWidthProperty) 823else if (e.Property == DataGrid.ColumnWidthProperty || e.Property == WidthProperty) 827else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty) 831else if (e.Property == DataGrid.CellStyleProperty || e.Property == CellStyleProperty) 835else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 839else if (e.Property == DataGrid.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty) 847else if (e.Property == DataGrid.CanUserSortColumnsProperty) 851else if (e.Property == DataGrid.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty) 855else if (e.Property == DataGrid.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty) 871DataGrid dataGridOwner = column.DataGridOwner; 926protected internal DataGrid DataGridOwner 1051BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(DataGrid.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers); 1054return column.DataGridOwner.GetValue(DataGrid.CanUserSortColumnsProperty); 1063DataGrid.CanUserSortColumnsProperty); 1273DataGrid dataGrid = column.DataGridOwner; 1316DataGrid.CanUserReorderColumnsProperty); 1342DataGrid.DragIndicatorStyleProperty); 1438var owner = DataGridOwner; 1475DataGrid.CanUserResizeColumnsProperty); 1545private 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)
18internal DataGridColumnCollection(DataGrid dataGridOwner) 179else if (e.Property == DataGrid.FrozenColumnCountProperty) 191else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 195else if (e.Property == DataGrid.CellsPanelHorizontalOffsetProperty) 199else if (e.Property == DataGrid.HorizontalScrollOffsetProperty || string.Equals(propertyName, "ViewportWidth", StringComparison.Ordinal)) 768private DataGrid DataGridOwner 2403DataGrid dataGrid = DataGridOwner; 2446DataGrid dataGrid = DataGridOwner; 2529private DataGrid _dataGridOwner;
System\Windows\Controls\DataGridHelper.cs (1)
43public static bool IsGridLineVisible(DataGrid dataGrid, bool isHorizontal)
System\Windows\Controls\DataGridRow.cs (31)
191var dataGrid = DataGridOwner; 435internal void PrepareRow(object item, DataGrid owningDataGrid) 477internal void ClearRow(DataGrid owningDataGrid) 611DataGrid.RowHeaderStyleProperty); 622DataGrid.RowHeaderTemplateProperty); 633DataGrid.RowHeaderTemplateSelectorProperty); 649DataGrid.RowBackgroundProperty); 658DataGrid.AlternatingRowBackgroundProperty); 674DataGrid.RowValidationErrorTemplateProperty); 685DataGrid.RowDetailsTemplateProperty); 696DataGrid.RowDetailsTemplateSelectorProperty); 707DataGrid.RowDetailsVisibilityModeProperty); 739var owningDataGrid = row.DataGridOwner; 794Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 814var dataGrid = row.DataGridOwner; 867if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 872else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 876else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 880else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 884else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 888else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 893else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 898else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 917e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1063DataGrid grid = row.DataGridOwner; 1170DataGrid dataGrid = DataGridOwner; 1235DataGrid dataGrid = DataGridOwner; 1280DataGrid dataGridOwner = DataGridOwner; 1303internal DataGrid DataGridOwner 1341private DataGrid _owner;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
135value = DataGrid.NewItemPlaceholder;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
97var dataGridOwner = DataGridOwner; 108NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(DataGrid.CellStyleProperty, null, null), DataGridNotificationTarget.Cells); 200DataGrid.RowHeightProperty); 211DataGrid.MinRowHeightProperty); 385else if (e.Property == DataGrid.FrozenColumnCountProperty || 387e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 388e.Property == DataGrid.HorizontalScrollOffsetProperty || 402else if (e.Property == DataGrid.RowHeightProperty || e.Property == HeightProperty) 406else if (e.Property == DataGrid.MinRowHeightProperty || e.Property == MinHeightProperty) 410else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 468var dataGrid = row.DataGridOwner; 514DataGrid.EnableColumnVirtualizationProperty); 537DataGrid dataGrid = DataGridOwner; 594internal DataGrid DataGridOwner 621DataGrid owningDataGrid = owningRow?.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
189DataGrid dataGrid = column.DataGridOwner; 293DataGrid dataGrid = header.Column.DataGridOwner; 324DataGrid dataGrid = resizingColumn.DataGridOwner; 341DataGrid dataGrid = header.Column.DataGridOwner; 415else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 419else if (e.Property == DataGrid.ColumnHeaderHeightProperty || e.Property == HeightProperty) 428else if (e.Property == DataGrid.CanUserResizeColumnsProperty) 467DataGrid dataGrid = Column.DataGridOwner; 482DataGrid dataGridOwner = Column.DataGridOwner; 503DataGrid dataGrid = Column.DataGridOwner; 521DataGrid dataGrid = Column.DataGridOwner; 534DataGrid dataGrid = Column.DataGridOwner; 550DataGrid dataGrid = Column.DataGridOwner; 661DataGrid dataGrid = null; 684DataGrid.ColumnHeaderStyleProperty); 768DataGrid dataGrid = null; 789DataGrid.ColumnHeaderHeightProperty); 1097DataGrid dataGridOwner = column.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
66DataGrid grid = ParentDataGrid; 144DataGrid dataGrid = ParentDataGrid; 296else if (e.Property == DataGrid.FrozenColumnCountProperty || 298e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 304else if (e.Property == DataGrid.HorizontalScrollOffsetProperty) 317else if (e.Property == DataGrid.CellsPanelActualWidthProperty) 321else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 345if (d is DataGrid && 346(e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGrid.ColumnHeaderHeightProperty) ) 383DataGrid.EnableColumnVirtualizationProperty); 943DataGrid dataGrid = ParentDataGrid; 1030internal DataGrid ParentDataGrid 1036_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1057private DataGrid _parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
49var dataGrid = row?.DataGridOwner; 57DataGrid.RowDetailsTemplateProperty); 67var dataGrid = row?.DataGridOwner; 75DataGrid.RowDetailsTemplateSelectorProperty); 113DataGrid dataGridOwner = rowOwner?.DataGridOwner; 179if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty) 183else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 212var dataGrid = row.DataGridOwner; 246var dataGrid = row.DataGridOwner; 280var dataGrid = row.DataGridOwner; 306private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
184DataGrid dataGridOwner = DataGridOwner; 262else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 266else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty) 270else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty) 274else if (e.Property == DataGrid.RowHeaderWidthProperty || e.Property == WidthProperty) 282else if (e.Property == DataGrid.CanUserResizeRowsProperty) 286else if (e.Property == DataGrid.RowHeaderActualWidthProperty) 301else if (e.Property == DataGrid.CurrentItemProperty || 304e.Property == DataGrid.IsKeyboardFocusWithinProperty) 335var dataGrid = row?.DataGridOwner; 343DataGrid.RowHeaderTemplateProperty); 353var dataGrid = row?.DataGridOwner; 361DataGrid.RowHeaderTemplateSelectorProperty); 377DataGrid.RowHeaderStyleProperty); 391DataGrid.RowHeaderWidthProperty); 405var dataGrid = row.DataGridOwner; 451var dataGrid = row.DataGridOwner; 559DataGrid dataGridOwner = DataGridOwner; 644DataGrid dataGrid = DataGridOwner; 663DataGrid dataGrid = DataGridOwner; 685DataGrid dataGrid = row.DataGridOwner; 769private DataGrid DataGridOwner
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
40DataGrid dataGrid = Owner; 75DataGrid dataGrid = Owner; 134internal DataGrid Owner 140_owner = ItemsControl.GetItemsOwner(this) as DataGrid; 151private DataGrid _owner;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
42internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
System\Windows\Controls\SelectedCellsCollection.cs (1)
33internal SelectedCellsCollection(DataGrid owner) : base(owner)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
21internal VirtualizedCellInfoCollection(DataGrid owner) 34private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 48internal static VirtualizedCellInfoCollection MakeEmptyCollection(DataGrid owner) 232public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 292private DataGrid _owner; 1311internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1317internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1323protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1555protected DataGrid Owner 1602private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1650protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1660private DataGrid _owner;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12356DataGrid dg = ic as DataGrid;
System\Windows\SystemResourceKey.cs (4)
2026_focusBorderBrushKey = new ComponentResourceKey(typeof(DataGrid), "FocusBorderBrushKey"); 2039_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(DataGrid), "TextBlockComboBoxStyleKey"); 2064_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnFloatingHeaderStyleKey"); 2077_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(DataGrid), "ColumnHeaderDropSeparatorStyleKey");