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)
949
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)
835
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
839
private
DataGrid
OwningDataGrid
852
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);
695
typeof(
DataGrid
),
714
typeof(
DataGrid
),
733
typeof(
DataGrid
),
897
DependencyProperty.Register("RowStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
906
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleProperty))
908
return d.GetValue(
DataGrid
.RowStyleProperty);
927
DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1009
DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged)));
1018
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleSelectorProperty))
1020
return d.GetValue(
DataGrid
.RowStyleSelectorProperty);
1028
DataGrid
dataGrid = (
DataGrid
)d;
1052
DependencyProperty.Register("RowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1070
DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));
1078
DataGrid
dataGrid = (
DataGrid
)d;
1102
DependencyProperty.Register("RowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1117
DependencyProperty.Register("MinRowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1161
var
dataGrid = row.DataGridOwner;
1202
DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged)));
1217
DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
1237
DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged));
1252
DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All));
1259
var
dataGrid = ((
DataGrid
)d);
1391
DependencyProperty.Register("CellStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1406
DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1421
DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1436
DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1451
DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1518
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
1532
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
2029
typeof(
DataGrid
),
2051
public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(
DataGrid
));
2057
public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(
DataGrid
));
2064
public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(
DataGrid
));
2079
((
DataGrid
)sender).OnCanExecuteBeginEdit(e);
2084
((
DataGrid
)sender).OnExecutedBeginEdit(e);
2284
((
DataGrid
)sender).OnCanExecuteCommitEdit(e);
2289
((
DataGrid
)sender).OnExecutedCommitEdit(e);
2488
((
DataGrid
)sender).OnCanExecuteCancelEdit(e);
2493
((
DataGrid
)sender).OnExecutedCancelEdit(e);
2580
((
DataGrid
)sender).OnCanExecuteDelete(e);
2585
((
DataGrid
)sender).OnExecutedDelete(e);
2774
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged)));
2781
((
DataGrid
)d).CancelAnyEdit();
2810
DependencyProperty.Register("CurrentItem", typeof(object), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged)));
2814
DataGrid
dataGrid = (
DataGrid
)d;
2853
DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged)));
2857
DataGrid
dataGrid = (
DataGrid
)d;
2886
DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2890
DataGrid
dataGrid = (
DataGrid
)d;
3457
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3461
((
DataGrid
)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false);
3466
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ true);
3469
private static bool OnCoerceCanUserAddOrDeleteRows(
DataGrid
dataGrid, bool baseValue, bool canUserAddRowsProperty)
3507
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
3517
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ false);
3877
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
3897
DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged));
3912
DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false));
3927
DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
3942
DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
4044
DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
4065
typeof(
DataGrid
),
4331
DataGrid
dataGrid = (
DataGrid
)sender;
4338
DataGrid
dataGrid = (
DataGrid
)sender;
4442
DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4446
DataGrid
dataGrid = (
DataGrid
)d;
4504
DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged)));
4508
DataGrid
dataGrid = (
DataGrid
)d;
5304
internal ChangingSelectedCellsHelper(
DataGrid
dataGrid)
5323
private
DataGrid
_dataGrid;
5414
((
DataGrid
)d).UpdateVisualState();
5424
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells);
6191
DataGrid
focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as
DataGrid
;
6344
((
DataGrid
)sender).OnAnyMouseUp(e);
6984
public void SetValue(
DataGrid
dataGrid, object value, bool clipboard)
7072
typeof(
DataGrid
),
7087
DataGrid
dataGrid = (
DataGrid
)d;
7099
DataGrid
dataGrid = (
DataGrid
)d;
7487
DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged)));
7619
DataGrid
dataGrid = (
DataGrid
)d;
7808
DataGrid
.GenerateColumns(
7859
DataGrid
.GenerateColumns(
7875
DataGrid
dataGrid,
7917
DataGrid
dataGrid = (
DataGrid
)d;
7940
typeof(
DataGrid
),
7961
DataGrid
dataGrid = (
DataGrid
)d;
7979
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter);
8000
typeof(
DataGrid
),
8059
typeof(
DataGrid
),
8068
DataGrid
dataGrid = (
DataGrid
)d;
8084
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.EnableRowVirtualizationProperty))
8086
return d.GetValue(
DataGrid
.EnableRowVirtualizationProperty);
8107
typeof(
DataGrid
),
8117
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection);
8128
DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged)));
8143
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8158
DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null));
8227
DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged)));
8246
((
DataGrid
)target).OnCanExecuteCopy(args);
8261
((
DataGrid
)target).OnExecutedCopy(args);
8420
typeof(
DataGrid
),
8451
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter);
8466
typeof(
DataGrid
),
System\Windows\Controls\DataGridCell.cs (21)
94
DataGrid
dataGrid = _owner.DataGridOwner;
222
var
dataGrid = cell.DataGridOwner;
253
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty)
257
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
265
else if (e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
302
DataGrid
.CellStyleProperty);
502
var
dataGrid = row.DataGridOwner;
533
var
dataGrid = cell.DataGridOwner;
543
DataGrid
.IsReadOnlyProperty);
554
DataGrid
owner = cell.DataGridOwner;
567
DataGrid
owner = cell.DataGridOwner;
628
DataGrid
dataGridOwner = DataGridOwner;
673
DataGrid
dataGrid = cell.DataGridOwner;
792
DataGrid
dataGridOwner = DataGridOwner;
828
DataGrid
dataGridOwner = DataGridOwner;
862
DataGrid
dataGrid = DataGridOwner;
904
DataGrid
dataGridOwner = DataGridOwner;
931
DataGrid
dataGridOwner = DataGridOwner;
1073
internal
DataGrid
DataGridOwner
1079
DataGrid
dataGridOwner = _owner.DataGridOwner;
1082
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)
162
DataGrid
parentDataGrid = ParentDataGrid;
225
DataGrid
parentDataGrid = ParentDataGrid;
596
DataGrid
parentDataGrid = ParentDataGrid;
828
DataGrid
parentDataGrid = ParentDataGrid;
960
DataGrid
dataGrid = ParentDataGrid;
1031
DataGrid
parentDataGrid = ParentDataGrid;
1287
DataGrid
parentDataGrid = ParentDataGrid;
1303
DataGrid
parentDataGrid = ParentDataGrid;
1362
DataGrid
parentDataGrid = ParentDataGrid;
1568
DataGrid
parentDataGrid = ParentDataGrid;
1684
DataGrid
dataGrid = ParentDataGrid;
1696
DataGrid
dataGrid = ParentDataGrid;
1715
DataGrid
dataGrid = ParentDataGrid;
1727
DataGrid
dataGrid = ParentDataGrid;
1746
DataGrid
dataGrid = ParentDataGrid;
1758
DataGrid
dataGrid = ParentDataGrid;
1838
DataGrid
parentDataGrid = ParentDataGrid;
1918
DataGrid
parentDataGrid = ParentDataGrid;
1982
DataGrid
dataGrid = ParentDataGrid;
1999
DataGrid
parentDataGrid = ParentDataGrid;
2141
DataGrid
parentDataGrid = ParentDataGrid;
2231
DataGrid
parentDataGrid = ParentDataGrid;
2245
DataGrid
parentDataGrid = ParentDataGrid;
2388
DataGrid
parentDataGrid = ParentDataGrid;
2401
private
DataGrid
ParentDataGrid
2451
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;
933
protected internal
DataGrid
DataGridOwner
1061
BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(
DataGrid
.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers);
1064
return column.DataGridOwner.GetValue(
DataGrid
.CanUserSortColumnsProperty);
1073
DataGrid
.CanUserSortColumnsProperty);
1281
DataGrid
dataGrid = column.DataGridOwner;
1324
DataGrid
.CanUserReorderColumnsProperty);
1350
DataGrid
.DragIndicatorStyleProperty);
1446
var
owner = DataGridOwner;
1483
DataGrid
.CanUserResizeColumnsProperty);
1553
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
2407
DataGrid
dataGrid = DataGridOwner;
2450
DataGrid
dataGrid = DataGridOwner;
2533
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)
618
DataGrid
.RowHeaderStyleProperty);
629
DataGrid
.RowHeaderTemplateProperty);
640
DataGrid
.RowHeaderTemplateSelectorProperty);
656
DataGrid
.RowBackgroundProperty);
665
DataGrid
.AlternatingRowBackgroundProperty);
681
DataGrid
.RowValidationErrorTemplateProperty);
692
DataGrid
.RowDetailsTemplateProperty);
703
DataGrid
.RowDetailsTemplateSelectorProperty);
714
DataGrid
.RowDetailsVisibilityModeProperty);
747
var
owningDataGrid = row.DataGridOwner;
805
Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(
DataGrid
.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
825
var
dataGrid = row.DataGridOwner;
878
if (e.Property ==
DataGrid
.RowBackgroundProperty || e.Property ==
DataGrid
.AlternatingRowBackgroundProperty ||
883
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == HeaderStyleProperty)
887
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty)
891
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty)
895
else if (e.Property ==
DataGrid
.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty)
899
else if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty)
904
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty)
909
else if (e.Property ==
DataGrid
.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty)
928
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
1086
DataGrid
grid = row.DataGridOwner;
1196
DataGrid
dataGrid = DataGridOwner;
1264
DataGrid
dataGrid = DataGridOwner;
1312
DataGrid
dataGridOwner = DataGridOwner;
1335
internal
DataGrid
DataGridOwner
1373
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);
389
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
391
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
392
e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
406
else if (e.Property ==
DataGrid
.RowHeightProperty || e.Property == HeightProperty)
410
else if (e.Property ==
DataGrid
.MinRowHeightProperty || e.Property == MinHeightProperty)
414
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
472
var
dataGrid = row.DataGridOwner;
516
DataGrid
.EnableColumnVirtualizationProperty);
539
DataGrid
dataGrid = DataGridOwner;
596
internal
DataGrid
DataGridOwner
623
DataGrid
owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
190
DataGrid
dataGrid = column.DataGridOwner;
297
DataGrid
dataGrid = header.Column.DataGridOwner;
331
DataGrid
dataGrid = resizingColumn.DataGridOwner;
348
DataGrid
dataGrid = header.Column.DataGridOwner;
425
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty)
429
else if (e.Property ==
DataGrid
.ColumnHeaderHeightProperty || e.Property == HeightProperty)
438
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty)
477
DataGrid
dataGrid = Column.DataGridOwner;
492
DataGrid
dataGridOwner = Column.DataGridOwner;
513
DataGrid
dataGrid = Column.DataGridOwner;
531
DataGrid
dataGrid = Column.DataGridOwner;
544
DataGrid
dataGrid = Column.DataGridOwner;
563
DataGrid
dataGrid = Column.DataGridOwner;
674
DataGrid
dataGrid = null;
697
DataGrid
.ColumnHeaderStyleProperty);
784
DataGrid
dataGrid = null;
805
DataGrid
.ColumnHeaderHeightProperty);
1113
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)
349
if (d is
DataGrid
&&
350
(e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property ==
DataGrid
.ColumnHeaderHeightProperty) )
390
DataGrid
.EnableColumnVirtualizationProperty);
949
DataGrid
dataGrid = ParentDataGrid;
1036
internal
DataGrid
ParentDataGrid
1042
_parentDataGrid = DataGridHelper.FindParent<
DataGrid
>(this);
1063
private
DataGrid
_parentDataGrid = null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
50
var
dataGrid = row != null ? row.DataGridOwner : null;
58
DataGrid
.RowDetailsTemplateProperty);
68
var
dataGrid = row != null ? row.DataGridOwner : null;
76
DataGrid
.RowDetailsTemplateSelectorProperty);
114
DataGrid
dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null;
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;
305
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 != null ? row.DataGridOwner : null;
344
DataGrid
.RowHeaderTemplateProperty);
354
var
dataGrid = row != null ? row.DataGridOwner : null;
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)
12382
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");