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)
220internal DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
266private DataGrid OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
362DataGrid dataGrid = this.OwningDataGrid; 563return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 576private DataGrid OwningDataGrid 581return (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); 1378DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1393DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1408DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1423DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1438DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1505public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1519public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2017typeof(DataGrid), 2039public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2045public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2052public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2067((DataGrid)sender).OnCanExecuteBeginEdit(e); 2072((DataGrid)sender).OnExecutedBeginEdit(e); 2269((DataGrid)sender).OnCanExecuteCommitEdit(e); 2274((DataGrid)sender).OnExecutedCommitEdit(e); 2467((DataGrid)sender).OnCanExecuteCancelEdit(e); 2472((DataGrid)sender).OnExecutedCancelEdit(e); 2556((DataGrid)sender).OnCanExecuteDelete(e); 2561((DataGrid)sender).OnExecutedDelete(e); 2750DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2757((DataGrid)d).CancelAnyEdit(); 2786DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2790DataGrid dataGrid = (DataGrid)d; 2829DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2833DataGrid dataGrid = (DataGrid)d; 2862DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2866DataGrid dataGrid = (DataGrid)d; 3427DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3431((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3436return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3439private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3477DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3487return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3844return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3864DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3879DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3894DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3909DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4011DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4032typeof(DataGrid), 4295DataGrid dataGrid = (DataGrid)sender; 4302DataGrid dataGrid = (DataGrid)sender; 4406DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4410DataGrid dataGrid = (DataGrid)d; 4468DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4472DataGrid dataGrid = (DataGrid)d; 5259internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5278private DataGrid _dataGrid; 5369((DataGrid)d).UpdateVisualState(); 5379((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6143DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6296((DataGrid)sender).OnAnyMouseUp(e); 6937public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7025typeof(DataGrid), 7040DataGrid dataGrid = (DataGrid)d; 7052DataGrid dataGrid = (DataGrid)d; 7440DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7569DataGrid dataGrid = (DataGrid)d; 7758DataGrid.GenerateColumns( 7809DataGrid.GenerateColumns( 7825DataGrid dataGrid, 7867DataGrid dataGrid = (DataGrid)d; 7890typeof(DataGrid), 7911DataGrid dataGrid = (DataGrid)d; 7929((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 7950typeof(DataGrid), 8009typeof(DataGrid), 8018DataGrid dataGrid = (DataGrid)d; 8034if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8036return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8057typeof(DataGrid), 8067((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8078DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8093DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8108DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8177DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8196((DataGrid)target).OnCanExecuteCopy(args); 8211((DataGrid)target).OnExecutedCopy(args); 8370typeof(DataGrid), 8401((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8416typeof(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; 615DataGrid dataGridOwner = DataGridOwner; 660DataGrid dataGrid = cell.DataGridOwner; 776DataGrid dataGridOwner = DataGridOwner; 812DataGrid dataGridOwner = DataGridOwner; 846DataGrid dataGrid = DataGridOwner; 892DataGrid dataGridOwner = DataGridOwner; 919DataGrid dataGridOwner = DataGridOwner; 1055internal DataGrid DataGridOwner 1061DataGrid dataGridOwner = _owner.DataGridOwner; 1064dataGridOwner = 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; 1353DataGrid parentDataGrid = ParentDataGrid; 1559DataGrid parentDataGrid = ParentDataGrid; 1675DataGrid dataGrid = ParentDataGrid; 1687DataGrid dataGrid = ParentDataGrid; 1706DataGrid dataGrid = ParentDataGrid; 1718DataGrid dataGrid = ParentDataGrid; 1737DataGrid dataGrid = ParentDataGrid; 1749DataGrid dataGrid = ParentDataGrid; 1826DataGrid parentDataGrid = ParentDataGrid; 1906DataGrid parentDataGrid = ParentDataGrid; 1970DataGrid dataGrid = ParentDataGrid; 1987DataGrid parentDataGrid = ParentDataGrid; 2129DataGrid parentDataGrid = ParentDataGrid; 2219DataGrid parentDataGrid = ParentDataGrid; 2233DataGrid parentDataGrid = ParentDataGrid; 2376DataGrid parentDataGrid = ParentDataGrid; 2389private DataGrid ParentDataGrid 2439private 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)
188var dataGrid = DataGridOwner; 432internal void PrepareRow(object item, DataGrid owningDataGrid) 474internal void ClearRow(DataGrid owningDataGrid) 605DataGrid.RowHeaderStyleProperty); 616DataGrid.RowHeaderTemplateProperty); 627DataGrid.RowHeaderTemplateSelectorProperty); 643DataGrid.RowBackgroundProperty); 652DataGrid.AlternatingRowBackgroundProperty); 668DataGrid.RowValidationErrorTemplateProperty); 679DataGrid.RowDetailsTemplateProperty); 690DataGrid.RowDetailsTemplateSelectorProperty); 701DataGrid.RowDetailsVisibilityModeProperty); 733var owningDataGrid = row.DataGridOwner; 788Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 808var dataGrid = row.DataGridOwner; 861if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 866else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 870else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 874else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 878else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 882else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 887else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 892else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 911e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1057DataGrid grid = row.DataGridOwner; 1164DataGrid dataGrid = DataGridOwner; 1229DataGrid dataGrid = DataGridOwner; 1274DataGrid dataGridOwner = DataGridOwner; 1297internal DataGrid DataGridOwner 1335private 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); 934DataGrid dataGrid = ParentDataGrid; 1021internal DataGrid ParentDataGrid 1027_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1048private 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");