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)
82
public
DataGrid
Members => _dialog.MemberSelectionControl.MemberSelectionGrid;
PresentationFramework (389)
MS\Internal\Data\PropertyPathWorker.cs (1)
937
parent ==
DataGrid
.NewItemPlaceholder)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
24
public DataGridAutomationPeer(
DataGrid
owner)
298
private
DataGrid
OwningDataGrid
302
return (
DataGrid
)Owner;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
832
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
836
private
DataGrid
OwningDataGrid
849
DataGrid
dataGrid = this.OwningDataGrid;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
224
internal
DataGrid
OwningDataGrid
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
270
private
DataGrid
OwningDataGrid
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
363
DataGrid
dataGrid = this.OwningDataGrid;
567
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
580
private
DataGrid
OwningDataGrid
585
return (
DataGrid
)gridPeer.Owner;
System\Windows\Controls\DataGrid.cs (142)
38
Type ownerType = typeof(
DataGrid
);
40
DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(
DataGrid
)));
70
CommandManager.RegisterClassCommandBinding(typeof(
DataGrid
), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
72
EventManager.RegisterClassHandler(typeof(
DataGrid
), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true);
138
DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
153
DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader));
171
typeof(
DataGrid
),
191
typeof(
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);
692
typeof(
DataGrid
),
711
typeof(
DataGrid
),
730
typeof(
DataGrid
),
894
DependencyProperty.Register("RowStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
903
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleProperty))
905
return d.GetValue(
DataGrid
.RowStyleProperty);
924
DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1006
DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged)));
1015
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleSelectorProperty))
1017
return d.GetValue(
DataGrid
.RowStyleSelectorProperty);
1025
DataGrid
dataGrid = (
DataGrid
)d;
1049
DependencyProperty.Register("RowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1067
DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));
1075
DataGrid
dataGrid = (
DataGrid
)d;
1099
DependencyProperty.Register("RowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1114
DependencyProperty.Register("MinRowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1158
var
dataGrid = row.DataGridOwner;
1196
DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged)));
1211
DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
1231
DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged));
1246
DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All));
1253
var
dataGrid = ((
DataGrid
)d);
1382
DependencyProperty.Register("CellStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1397
DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1412
DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1427
DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1442
DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1509
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
1523
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
2024
typeof(
DataGrid
),
2046
public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(
DataGrid
));
2052
public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(
DataGrid
));
2059
public 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);
2757
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged)));
2764
((
DataGrid
)d).CancelAnyEdit();
2793
DependencyProperty.Register("CurrentItem", typeof(object), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged)));
2797
DataGrid
dataGrid = (
DataGrid
)d;
2836
DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged)));
2840
DataGrid
dataGrid = (
DataGrid
)d;
2869
DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2873
DataGrid
dataGrid = (
DataGrid
)d;
3434
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3438
((
DataGrid
)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false);
3443
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ true);
3446
private static bool OnCoerceCanUserAddOrDeleteRows(
DataGrid
dataGrid, bool baseValue, bool canUserAddRowsProperty)
3484
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
3494
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ false);
3851
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
3871
DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged));
3886
DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false));
3901
DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
3916
DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
4018
DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
4039
typeof(
DataGrid
),
4302
DataGrid
dataGrid = (
DataGrid
)sender;
4309
DataGrid
dataGrid = (
DataGrid
)sender;
4413
DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4417
DataGrid
dataGrid = (
DataGrid
)d;
4475
DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged)));
4479
DataGrid
dataGrid = (
DataGrid
)d;
5266
internal ChangingSelectedCellsHelper(
DataGrid
dataGrid)
5285
private
DataGrid
_dataGrid;
5376
((
DataGrid
)d).UpdateVisualState();
5386
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells);
6150
DataGrid
focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as
DataGrid
;
6303
((
DataGrid
)sender).OnAnyMouseUp(e);
6944
public void SetValue(
DataGrid
dataGrid, object value, bool clipboard)
7032
typeof(
DataGrid
),
7047
DataGrid
dataGrid = (
DataGrid
)d;
7059
DataGrid
dataGrid = (
DataGrid
)d;
7447
DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged)));
7576
DataGrid
dataGrid = (
DataGrid
)d;
7765
DataGrid
.GenerateColumns(
7816
DataGrid
.GenerateColumns(
7832
DataGrid
dataGrid,
7874
DataGrid
dataGrid = (
DataGrid
)d;
7897
typeof(
DataGrid
),
7918
DataGrid
dataGrid = (
DataGrid
)d;
7936
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter);
7957
typeof(
DataGrid
),
8016
typeof(
DataGrid
),
8025
DataGrid
dataGrid = (
DataGrid
)d;
8041
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.EnableRowVirtualizationProperty))
8043
return d.GetValue(
DataGrid
.EnableRowVirtualizationProperty);
8064
typeof(
DataGrid
),
8074
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection);
8085
DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged)));
8100
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8115
DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null));
8184
DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged)));
8203
((
DataGrid
)target).OnCanExecuteCopy(args);
8218
((
DataGrid
)target).OnExecutedCopy(args);
8377
typeof(
DataGrid
),
8408
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter);
8423
typeof(
DataGrid
),
System\Windows\Controls\DataGridCell.cs (21)
94
DataGrid
dataGrid = _owner.DataGridOwner;
219
var
dataGrid = cell.DataGridOwner;
250
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty)
254
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
262
else if (e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
299
DataGrid
.CellStyleProperty);
499
var
dataGrid = row.DataGridOwner;
530
var
dataGrid = cell.DataGridOwner;
540
DataGrid
.IsReadOnlyProperty);
551
DataGrid
owner = cell.DataGridOwner;
564
DataGrid
owner = cell.DataGridOwner;
619
DataGrid
dataGridOwner = DataGridOwner;
664
DataGrid
dataGrid = cell.DataGridOwner;
780
DataGrid
dataGridOwner = DataGridOwner;
816
DataGrid
dataGridOwner = DataGridOwner;
850
DataGrid
dataGrid = DataGridOwner;
896
DataGrid
dataGridOwner = DataGridOwner;
923
DataGrid
dataGridOwner = DataGridOwner;
1059
internal
DataGrid
DataGridOwner
1065
DataGrid
dataGridOwner = _owner.DataGridOwner;
1068
dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as
DataGrid
;
System\Windows\Controls\DataGridCellInfo.cs (9)
46
DataGrid
owner = cell.DataGridOwner;
52
internal DataGridCellInfo(object item, DataGridColumn column,
DataGrid
owner)
63
internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column,
DataGrid
owner)
103
private DataGridCellInfo(
DataGrid
owner, DataGridColumn column, object item)
115
internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column,
DataGrid
owner)
216
internal bool IsValidForDataGrid(
DataGrid
dataGrid)
218
DataGrid
owner = Owner;
265
private
DataGrid
Owner
271
return (
DataGrid
)_owner.Target;
System\Windows\Controls\DataGridCellsPanel.cs (26)
161
DataGrid
parentDataGrid = ParentDataGrid;
224
DataGrid
parentDataGrid = ParentDataGrid;
595
DataGrid
parentDataGrid = ParentDataGrid;
827
DataGrid
parentDataGrid = ParentDataGrid;
959
DataGrid
dataGrid = ParentDataGrid;
1030
DataGrid
parentDataGrid = ParentDataGrid;
1286
DataGrid
parentDataGrid = ParentDataGrid;
1302
DataGrid
parentDataGrid = ParentDataGrid;
1357
DataGrid
parentDataGrid = ParentDataGrid;
1563
DataGrid
parentDataGrid = ParentDataGrid;
1679
DataGrid
dataGrid = ParentDataGrid;
1691
DataGrid
dataGrid = ParentDataGrid;
1710
DataGrid
dataGrid = ParentDataGrid;
1722
DataGrid
dataGrid = ParentDataGrid;
1741
DataGrid
dataGrid = ParentDataGrid;
1753
DataGrid
dataGrid = ParentDataGrid;
1833
DataGrid
parentDataGrid = ParentDataGrid;
1913
DataGrid
parentDataGrid = ParentDataGrid;
1977
DataGrid
dataGrid = ParentDataGrid;
1994
DataGrid
parentDataGrid = ParentDataGrid;
2136
DataGrid
parentDataGrid = ParentDataGrid;
2226
DataGrid
parentDataGrid = ParentDataGrid;
2240
DataGrid
parentDataGrid = ParentDataGrid;
2383
DataGrid
parentDataGrid = ParentDataGrid;
2396
private
DataGrid
ParentDataGrid
2446
private
DataGrid
_parentDataGrid;
System\Windows\Controls\DataGridColumn.cs (30)
59
DataGrid
.ColumnHeaderStyleProperty);
134
DataGrid
.CellStyleProperty);
168
DataGrid
.IsReadOnlyProperty);
225
DataGrid
dataGrid = column.DataGridOwner;
313
DataGrid
dataGrid = column.DataGridOwner;
352
DataGrid
dataGrid = column.DataGridOwner;
395
DataGrid
.ColumnWidthProperty);
423
DataGrid
.MinColumnWidthProperty);
437
DataGrid
.MaxColumnWidthProperty);
816
if (e.Property ==
DataGrid
.MaxColumnWidthProperty || e.Property == MaxWidthProperty)
820
else if (e.Property ==
DataGrid
.MinColumnWidthProperty || e.Property == MinWidthProperty)
824
else if (e.Property ==
DataGrid
.ColumnWidthProperty || e.Property == WidthProperty)
828
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty)
832
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == CellStyleProperty)
836
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
840
else if (e.Property ==
DataGrid
.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty)
848
else if (e.Property ==
DataGrid
.CanUserSortColumnsProperty)
852
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty)
856
else if (e.Property ==
DataGrid
.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty)
872
DataGrid
dataGridOwner = column.DataGridOwner;
927
protected internal
DataGrid
DataGridOwner
1052
BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(
DataGrid
.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers);
1055
return column.DataGridOwner.GetValue(
DataGrid
.CanUserSortColumnsProperty);
1064
DataGrid
.CanUserSortColumnsProperty);
1274
DataGrid
dataGrid = column.DataGridOwner;
1317
DataGrid
.CanUserReorderColumnsProperty);
1343
DataGrid
.DragIndicatorStyleProperty);
1439
var
owner = DataGridOwner;
1476
DataGrid
.CanUserResizeColumnsProperty);
1546
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)
19
internal DataGridColumnCollection(
DataGrid
dataGridOwner)
180
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty)
192
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
196
else if (e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty)
200
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty || string.Equals(propertyName, "ViewportWidth", StringComparison.Ordinal))
769
private
DataGrid
DataGridOwner
2404
DataGrid
dataGrid = DataGridOwner;
2447
DataGrid
dataGrid = DataGridOwner;
2530
private
DataGrid
_dataGridOwner;
System\Windows\Controls\DataGridHelper.cs (1)
44
public static bool IsGridLineVisible(
DataGrid
dataGrid, bool isHorizontal)
System\Windows\Controls\DataGridRow.cs (31)
192
var
dataGrid = DataGridOwner;
436
internal void PrepareRow(object item,
DataGrid
owningDataGrid)
478
internal void ClearRow(
DataGrid
owningDataGrid)
612
DataGrid
.RowHeaderStyleProperty);
623
DataGrid
.RowHeaderTemplateProperty);
634
DataGrid
.RowHeaderTemplateSelectorProperty);
650
DataGrid
.RowBackgroundProperty);
659
DataGrid
.AlternatingRowBackgroundProperty);
675
DataGrid
.RowValidationErrorTemplateProperty);
686
DataGrid
.RowDetailsTemplateProperty);
697
DataGrid
.RowDetailsTemplateSelectorProperty);
708
DataGrid
.RowDetailsVisibilityModeProperty);
740
var
owningDataGrid = row.DataGridOwner;
795
Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(
DataGrid
.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
815
var
dataGrid = row.DataGridOwner;
868
if (e.Property ==
DataGrid
.RowBackgroundProperty || e.Property ==
DataGrid
.AlternatingRowBackgroundProperty ||
873
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == HeaderStyleProperty)
877
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty)
881
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty)
885
else if (e.Property ==
DataGrid
.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty)
889
else if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty)
894
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty)
899
else if (e.Property ==
DataGrid
.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty)
918
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
1064
DataGrid
grid = row.DataGridOwner;
1171
DataGrid
dataGrid = DataGridOwner;
1236
DataGrid
dataGrid = DataGridOwner;
1281
DataGrid
dataGridOwner = DataGridOwner;
1304
internal
DataGrid
DataGridOwner
1342
private
DataGrid
_owner;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
136
value =
DataGrid
.NewItemPlaceholder;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
98
var
dataGridOwner = DataGridOwner;
109
NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(
DataGrid
.CellStyleProperty, null, null), DataGridNotificationTarget.Cells);
201
DataGrid
.RowHeightProperty);
212
DataGrid
.MinRowHeightProperty);
386
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
388
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
389
e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
403
else if (e.Property ==
DataGrid
.RowHeightProperty || e.Property == HeightProperty)
407
else if (e.Property ==
DataGrid
.MinRowHeightProperty || e.Property == MinHeightProperty)
411
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
469
var
dataGrid = row.DataGridOwner;
515
DataGrid
.EnableColumnVirtualizationProperty);
538
DataGrid
dataGrid = DataGridOwner;
595
internal
DataGrid
DataGridOwner
622
DataGrid
owningDataGrid = owningRow?.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
190
DataGrid
dataGrid = column.DataGridOwner;
294
DataGrid
dataGrid = header.Column.DataGridOwner;
325
DataGrid
dataGrid = resizingColumn.DataGridOwner;
342
DataGrid
dataGrid = header.Column.DataGridOwner;
416
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty)
420
else if (e.Property ==
DataGrid
.ColumnHeaderHeightProperty || e.Property == HeightProperty)
429
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty)
468
DataGrid
dataGrid = Column.DataGridOwner;
483
DataGrid
dataGridOwner = Column.DataGridOwner;
504
DataGrid
dataGrid = Column.DataGridOwner;
522
DataGrid
dataGrid = Column.DataGridOwner;
535
DataGrid
dataGrid = Column.DataGridOwner;
551
DataGrid
dataGrid = Column.DataGridOwner;
662
DataGrid
dataGrid = null;
685
DataGrid
.ColumnHeaderStyleProperty);
769
DataGrid
dataGrid = null;
790
DataGrid
.ColumnHeaderHeightProperty);
1098
DataGrid
dataGridOwner = column.DataGridOwner;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
67
DataGrid
grid = ParentDataGrid;
145
DataGrid
dataGrid = ParentDataGrid;
297
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
299
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
305
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty)
318
else if (e.Property ==
DataGrid
.CellsPanelActualWidthProperty)
322
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
346
if (d is
DataGrid
&&
347
(e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property ==
DataGrid
.ColumnHeaderHeightProperty) )
384
DataGrid
.EnableColumnVirtualizationProperty);
944
DataGrid
dataGrid = ParentDataGrid;
1031
internal
DataGrid
ParentDataGrid
1037
_parentDataGrid = DataGridHelper.FindParent<
DataGrid
>(this);
1058
private
DataGrid
_parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
50
var
dataGrid = row?.DataGridOwner;
58
DataGrid
.RowDetailsTemplateProperty);
68
var
dataGrid = row?.DataGridOwner;
76
DataGrid
.RowDetailsTemplateSelectorProperty);
114
DataGrid
dataGridOwner = rowOwner?.DataGridOwner;
180
if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty)
184
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
213
var
dataGrid = row.DataGridOwner;
247
var
dataGrid = row.DataGridOwner;
281
var
dataGrid = row.DataGridOwner;
307
private
DataGrid
DataGridOwner
System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
185
DataGrid
dataGridOwner = DataGridOwner;
263
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty)
267
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty)
271
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
275
else if (e.Property ==
DataGrid
.RowHeaderWidthProperty || e.Property == WidthProperty)
283
else if (e.Property ==
DataGrid
.CanUserResizeRowsProperty)
287
else if (e.Property ==
DataGrid
.RowHeaderActualWidthProperty)
302
else if (e.Property ==
DataGrid
.CurrentItemProperty ||
305
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
336
var
dataGrid = row?.DataGridOwner;
344
DataGrid
.RowHeaderTemplateProperty);
354
var
dataGrid = row?.DataGridOwner;
362
DataGrid
.RowHeaderTemplateSelectorProperty);
378
DataGrid
.RowHeaderStyleProperty);
392
DataGrid
.RowHeaderWidthProperty);
406
var
dataGrid = row.DataGridOwner;
452
var
dataGrid = row.DataGridOwner;
560
DataGrid
dataGridOwner = DataGridOwner;
645
DataGrid
dataGrid = DataGridOwner;
664
DataGrid
dataGrid = DataGridOwner;
686
DataGrid
dataGrid = row.DataGridOwner;
770
private
DataGrid
DataGridOwner
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
41
DataGrid
dataGrid = Owner;
76
DataGrid
dataGrid = Owner;
135
internal
DataGrid
Owner
141
_owner = ItemsControl.GetItemsOwner(this) as
DataGrid
;
152
private
DataGrid
_owner;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
43
internal SelectedCellsChangedEventArgs(
DataGrid
owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
System\Windows\Controls\SelectedCellsCollection.cs (1)
34
internal SelectedCellsCollection(
DataGrid
owner) : base(owner)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
22
internal VirtualizedCellInfoCollection(
DataGrid
owner)
35
private VirtualizedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions)
49
internal static VirtualizedCellInfoCollection MakeEmptyCollection(
DataGrid
owner)
233
public VirtualizedCellInfoCollectionEnumerator(
DataGrid
owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection)
293
private
DataGrid
_owner;
1312
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, DataGridColumn column)
1318
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, object item)
1324
protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1556
protected
DataGrid
Owner
1603
private DataGridCellInfo GetCellInfoFromIndex(
DataGrid
owner, List<CellRegion> regions, int index)
1651
protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1661
private
DataGrid
_owner;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12357
DataGrid
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");