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)
937parent == 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)
832return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 836private DataGrid OwningDataGrid 849DataGrid 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); 692typeof(DataGrid), 711typeof(DataGrid), 730typeof(DataGrid), 894DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 903if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleProperty)) 905return d.GetValue(DataGrid.RowStyleProperty); 924DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1006DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged))); 1015if (!DataGridHelper.IsDefaultValue(d, DataGrid.RowStyleSelectorProperty)) 1017return d.GetValue(DataGrid.RowStyleSelectorProperty); 1025DataGrid dataGrid = (DataGrid)d; 1049DependencyProperty.Register("RowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged))); 1067DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged))); 1075DataGrid dataGrid = (DataGrid)d; 1099DependencyProperty.Register("RowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1114DependencyProperty.Register("MinRowHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged))); 1158var dataGrid = row.DataGridOwner; 1196DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged))); 1211DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 1231DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(DataGrid), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged)); 1246DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All)); 1253var dataGrid = ((DataGrid)d); 1382DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1397DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1412DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1427DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1442DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 1509public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 1523public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(DataGrid), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto)); 2024typeof(DataGrid), 2046public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2052public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2059public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 2074((DataGrid)sender).OnCanExecuteBeginEdit(e); 2079((DataGrid)sender).OnExecutedBeginEdit(e); 2276((DataGrid)sender).OnCanExecuteCommitEdit(e); 2281((DataGrid)sender).OnExecutedCommitEdit(e); 2474((DataGrid)sender).OnCanExecuteCancelEdit(e); 2479((DataGrid)sender).OnExecutedCancelEdit(e); 2563((DataGrid)sender).OnCanExecuteDelete(e); 2568((DataGrid)sender).OnExecutedDelete(e); 2757DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged))); 2764((DataGrid)d).CancelAnyEdit(); 2793DependencyProperty.Register("CurrentItem", typeof(object), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged))); 2797DataGrid dataGrid = (DataGrid)d; 2836DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged))); 2840DataGrid dataGrid = (DataGrid)d; 2869DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged))); 2873DataGrid dataGrid = (DataGrid)d; 3434DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows))); 3438((DataGrid)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false); 3443return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ true); 3446private static bool OnCoerceCanUserAddOrDeleteRows(DataGrid dataGrid, bool baseValue, bool canUserAddRowsProperty) 3484DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows))); 3494return OnCoerceCanUserAddOrDeleteRows((DataGrid)d, (bool)baseValue, /* canUserAddRowsProperty = */ false); 3851return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 3871DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged)); 3886DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(false)); 3901DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 3916DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged)); 4018DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged))); 4039typeof(DataGrid), 4302DataGrid dataGrid = (DataGrid)sender; 4309DataGrid dataGrid = (DataGrid)sender; 4413DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged))); 4417DataGrid dataGrid = (DataGrid)d; 4475DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4479DataGrid dataGrid = (DataGrid)d; 5266internal ChangingSelectedCellsHelper(DataGrid dataGrid) 5285private DataGrid _dataGrid; 5376((DataGrid)d).UpdateVisualState(); 5386((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells); 6150DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6303((DataGrid)sender).OnAnyMouseUp(e); 6944public void SetValue(DataGrid dataGrid, object value, bool clipboard) 7032typeof(DataGrid), 7047DataGrid dataGrid = (DataGrid)d; 7059DataGrid dataGrid = (DataGrid)d; 7447DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged))); 7576DataGrid dataGrid = (DataGrid)d; 7765DataGrid.GenerateColumns( 7816DataGrid.GenerateColumns( 7832DataGrid dataGrid, 7874DataGrid dataGrid = (DataGrid)d; 7897typeof(DataGrid), 7918DataGrid dataGrid = (DataGrid)d; 7936((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter); 7957typeof(DataGrid), 8016typeof(DataGrid), 8025DataGrid dataGrid = (DataGrid)d; 8041if (!DataGridHelper.IsDefaultValue(d, DataGrid.EnableRowVirtualizationProperty)) 8043return d.GetValue(DataGrid.EnableRowVirtualizationProperty); 8064typeof(DataGrid), 8074((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection); 8085DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(DataGrid), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged))); 8100DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8115DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8184DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged))); 8203((DataGrid)target).OnCanExecuteCopy(args); 8218((DataGrid)target).OnExecutedCopy(args); 8377typeof(DataGrid), 8408((DataGrid)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter); 8423typeof(DataGrid),
System\Windows\Controls\DataGridCell.cs (21)
94DataGrid dataGrid = _owner.DataGridOwner; 219var dataGrid = cell.DataGridOwner; 250else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 254else if (e.Property == DataGrid.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty) 262else if (e.Property == DataGrid.IsKeyboardFocusWithinProperty) 299DataGrid.CellStyleProperty); 499var dataGrid = row.DataGridOwner; 530var dataGrid = cell.DataGridOwner; 540DataGrid.IsReadOnlyProperty); 551DataGrid owner = cell.DataGridOwner; 564DataGrid owner = cell.DataGridOwner; 619DataGrid dataGridOwner = DataGridOwner; 664DataGrid dataGrid = cell.DataGridOwner; 780DataGrid dataGridOwner = DataGridOwner; 816DataGrid dataGridOwner = DataGridOwner; 850DataGrid dataGrid = DataGridOwner; 896DataGrid dataGridOwner = DataGridOwner; 923DataGrid dataGridOwner = DataGridOwner; 1059internal DataGrid DataGridOwner 1065DataGrid dataGridOwner = _owner.DataGridOwner; 1068dataGridOwner = 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)
161DataGrid parentDataGrid = ParentDataGrid; 224DataGrid parentDataGrid = ParentDataGrid; 595DataGrid parentDataGrid = ParentDataGrid; 827DataGrid parentDataGrid = ParentDataGrid; 959DataGrid dataGrid = ParentDataGrid; 1030DataGrid parentDataGrid = ParentDataGrid; 1286DataGrid parentDataGrid = ParentDataGrid; 1302DataGrid parentDataGrid = ParentDataGrid; 1357DataGrid parentDataGrid = ParentDataGrid; 1563DataGrid parentDataGrid = ParentDataGrid; 1679DataGrid dataGrid = ParentDataGrid; 1691DataGrid dataGrid = ParentDataGrid; 1710DataGrid dataGrid = ParentDataGrid; 1722DataGrid dataGrid = ParentDataGrid; 1741DataGrid dataGrid = ParentDataGrid; 1753DataGrid dataGrid = ParentDataGrid; 1833DataGrid parentDataGrid = ParentDataGrid; 1913DataGrid parentDataGrid = ParentDataGrid; 1977DataGrid dataGrid = ParentDataGrid; 1994DataGrid parentDataGrid = ParentDataGrid; 2136DataGrid parentDataGrid = ParentDataGrid; 2226DataGrid parentDataGrid = ParentDataGrid; 2240DataGrid parentDataGrid = ParentDataGrid; 2383DataGrid parentDataGrid = ParentDataGrid; 2396private DataGrid ParentDataGrid 2446private 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; 927protected internal DataGrid DataGridOwner 1052BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(DataGrid.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers); 1055return column.DataGridOwner.GetValue(DataGrid.CanUserSortColumnsProperty); 1064DataGrid.CanUserSortColumnsProperty); 1274DataGrid dataGrid = column.DataGridOwner; 1317DataGrid.CanUserReorderColumnsProperty); 1343DataGrid.DragIndicatorStyleProperty); 1439var owner = DataGridOwner; 1476DataGrid.CanUserResizeColumnsProperty); 1546private 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 2404DataGrid dataGrid = DataGridOwner; 2447DataGrid dataGrid = DataGridOwner; 2530private 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) 612DataGrid.RowHeaderStyleProperty); 623DataGrid.RowHeaderTemplateProperty); 634DataGrid.RowHeaderTemplateSelectorProperty); 650DataGrid.RowBackgroundProperty); 659DataGrid.AlternatingRowBackgroundProperty); 675DataGrid.RowValidationErrorTemplateProperty); 686DataGrid.RowDetailsTemplateProperty); 697DataGrid.RowDetailsTemplateSelectorProperty); 708DataGrid.RowDetailsVisibilityModeProperty); 740var owningDataGrid = row.DataGridOwner; 795Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DataGrid.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row); 815var dataGrid = row.DataGridOwner; 868if (e.Property == DataGrid.RowBackgroundProperty || e.Property == DataGrid.AlternatingRowBackgroundProperty || 873else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == HeaderStyleProperty) 877else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty) 881else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty) 885else if (e.Property == DataGrid.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty) 889else if (e.Property == DataGrid.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty) 894else if (e.Property == DataGrid.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty) 899else if (e.Property == DataGrid.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty) 918e.Property == DataGrid.IsKeyboardFocusWithinProperty) 1064DataGrid grid = row.DataGridOwner; 1171DataGrid dataGrid = DataGridOwner; 1236DataGrid dataGrid = DataGridOwner; 1281DataGrid dataGridOwner = DataGridOwner; 1304internal DataGrid DataGridOwner 1342private 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); 386else if (e.Property == DataGrid.FrozenColumnCountProperty || 388e.Property == DataGrid.CellsPanelHorizontalOffsetProperty || 389e.Property == DataGrid.HorizontalScrollOffsetProperty || 403else if (e.Property == DataGrid.RowHeightProperty || e.Property == HeightProperty) 407else if (e.Property == DataGrid.MinRowHeightProperty || e.Property == MinHeightProperty) 411else if (e.Property == DataGrid.EnableColumnVirtualizationProperty) 469var dataGrid = row.DataGridOwner; 515DataGrid.EnableColumnVirtualizationProperty); 538DataGrid dataGrid = DataGridOwner; 595internal DataGrid DataGridOwner 622DataGrid owningDataGrid = owningRow?.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
190DataGrid dataGrid = column.DataGridOwner; 294DataGrid dataGrid = header.Column.DataGridOwner; 325DataGrid dataGrid = resizingColumn.DataGridOwner; 342DataGrid dataGrid = header.Column.DataGridOwner; 416else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 420else if (e.Property == DataGrid.ColumnHeaderHeightProperty || e.Property == HeightProperty) 429else if (e.Property == DataGrid.CanUserResizeColumnsProperty) 468DataGrid dataGrid = Column.DataGridOwner; 483DataGrid dataGridOwner = Column.DataGridOwner; 504DataGrid dataGrid = Column.DataGridOwner; 522DataGrid dataGrid = Column.DataGridOwner; 535DataGrid dataGrid = Column.DataGridOwner; 551DataGrid dataGrid = Column.DataGridOwner; 662DataGrid dataGrid = null; 685DataGrid.ColumnHeaderStyleProperty); 769DataGrid dataGrid = null; 790DataGrid.ColumnHeaderHeightProperty); 1098DataGrid 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) 346if (d is DataGrid && 347(e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGrid.ColumnHeaderHeightProperty) ) 384DataGrid.EnableColumnVirtualizationProperty); 944DataGrid dataGrid = ParentDataGrid; 1031internal DataGrid ParentDataGrid 1037_parentDataGrid = DataGridHelper.FindParent<DataGrid>(this); 1058private DataGrid _parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
50var dataGrid = row?.DataGridOwner; 58DataGrid.RowDetailsTemplateProperty); 68var dataGrid = row?.DataGridOwner; 76DataGrid.RowDetailsTemplateSelectorProperty); 114DataGrid dataGridOwner = rowOwner?.DataGridOwner; 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; 307private 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?.DataGridOwner; 344DataGrid.RowHeaderTemplateProperty); 354var dataGrid = row?.DataGridOwner; 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)
12357DataGrid 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");