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