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