419 references to DataGrid
PresentationFramework (390)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
952
parent ==
DataGrid
.NewItemPlaceholder)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
25
public DataGridAutomationPeer(
DataGrid
owner)
302
private
DataGrid
OwningDataGrid
306
return (
DataGrid
)Owner;
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (3)
815
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
819
private
DataGrid
OwningDataGrid
832
DataGrid
dataGrid = this.OwningDataGrid;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
226
internal
DataGrid
OwningDataGrid
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
268
private
DataGrid
OwningDataGrid
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
371
DataGrid
dataGrid = this.OwningDataGrid;
582
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
595
private
DataGrid
OwningDataGrid
600
return (
DataGrid
)gridPeer.Owner;
src\Framework\System\Windows\Controls\DataGrid.cs (142)
42
Type ownerType = typeof(
DataGrid
);
44
DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(
DataGrid
)));
74
CommandManager.RegisterClassCommandBinding(typeof(
DataGrid
), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
76
EventManager.RegisterClassHandler(typeof(
DataGrid
), MouseUpEvent, new MouseButtonEventHandler(OnAnyMouseUpThunk), true);
142
DependencyProperty.Register("CanUserResizeColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
157
DependencyProperty.Register("ColumnWidth", typeof(DataGridLength), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridLength.SizeToHeader));
175
typeof(
DataGrid
),
195
typeof(
DataGrid
),
201
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns);
474
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter);
482
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.Cells);
490
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns);
498
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Columns | DataGridNotificationTarget.ColumnHeaders);
506
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders);
514
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeaders | DataGridNotificationTarget.RowHeaders);
522
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DataGrid);
538
((
DataGrid
)d).OnItemTemplateChanged(null, null);
547
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
555
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.RowHeaders);
563
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
571
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.DetailsPresenter);
579
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter);
699
typeof(
DataGrid
),
718
typeof(
DataGrid
),
737
typeof(
DataGrid
),
901
DependencyProperty.Register("RowStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
910
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleProperty))
912
return d.GetValue(
DataGrid
.RowStyleProperty);
931
DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1013
DependencyProperty.Register("RowStyleSelector", typeof(StyleSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleSelectorChanged)));
1022
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.RowStyleSelectorProperty))
1024
return d.GetValue(
DataGrid
.RowStyleSelectorProperty);
1032
DataGrid
dataGrid = (
DataGrid
)d;
1056
DependencyProperty.Register("RowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
1074
DependencyProperty.Register("AlternatingRowBackground", typeof(Brush), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyDataGridAndRowPropertyChanged)));
1082
DataGrid
dataGrid = (
DataGrid
)d;
1106
DependencyProperty.Register("RowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1121
DependencyProperty.Register("MinRowHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyCellsPresenterPropertyChanged)));
1165
var
dataGrid = row.DataGridOwner;
1206
DependencyProperty.Register("RowHeaderWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, new PropertyChangedCallback(OnNotifyRowHeaderWidthPropertyChanged)));
1221
DependencyProperty.RegisterReadOnly("RowHeaderActualWidth", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(0.0, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
1241
DependencyProperty.Register("ColumnHeaderHeight", typeof(double), typeof(
DataGrid
), new FrameworkPropertyMetadata(double.NaN, OnNotifyColumnHeaderPropertyChanged));
1256
DependencyProperty.Register("HeadersVisibility", typeof(DataGridHeadersVisibility), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridHeadersVisibility.All));
1263
var
dataGrid = ((
DataGrid
)d);
1395
DependencyProperty.Register("CellStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1410
DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1425
DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1440
DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1455
DependencyProperty.Register("RowHeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
1522
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty = ScrollViewer.HorizontalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
1536
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = ScrollViewer.VerticalScrollBarVisibilityProperty.AddOwner(typeof(
DataGrid
), new FrameworkPropertyMetadata(ScrollBarVisibility.Auto));
2036
typeof(
DataGrid
),
2058
public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(
DataGrid
));
2064
public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(
DataGrid
));
2071
public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(
DataGrid
));
2086
((
DataGrid
)sender).OnCanExecuteBeginEdit(e);
2091
((
DataGrid
)sender).OnExecutedBeginEdit(e);
2292
((
DataGrid
)sender).OnCanExecuteCommitEdit(e);
2297
((
DataGrid
)sender).OnExecutedCommitEdit(e);
2496
((
DataGrid
)sender).OnCanExecuteCancelEdit(e);
2501
((
DataGrid
)sender).OnExecutedCancelEdit(e);
2588
((
DataGrid
)sender).OnCanExecuteDelete(e);
2593
((
DataGrid
)sender).OnExecutedDelete(e);
2782
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsReadOnlyChanged)));
2789
((
DataGrid
)d).CancelAnyEdit();
2818
DependencyProperty.Register("CurrentItem", typeof(object), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentItemChanged)));
2822
DataGrid
dataGrid = (
DataGrid
)d;
2861
DependencyProperty.Register("CurrentColumn", typeof(DataGridColumn), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCurrentColumnChanged)));
2865
DataGrid
dataGrid = (
DataGrid
)d;
2894
DependencyProperty.Register("CurrentCell", typeof(DataGridCellInfo), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridCellInfo.Unset, new PropertyChangedCallback(OnCurrentCellChanged)));
2898
DataGrid
dataGrid = (
DataGrid
)d;
3465
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3469
((
DataGrid
)d).UpdateNewItemPlaceholder(/* isAddingNewItem = */ false);
3474
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ true);
3477
private static bool OnCoerceCanUserAddOrDeleteRows(
DataGrid
dataGrid, bool baseValue, bool canUserAddRowsProperty)
3515
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
3525
return OnCoerceCanUserAddOrDeleteRows((
DataGrid
)d, (bool)baseValue, /* canUserAddRowsProperty = */ false);
3885
return (item == CollectionView.NewItemPlaceholder) || (item ==
DataGrid
.NewItemPlaceholder);
3905
DependencyProperty.Register("RowDetailsVisibilityMode", typeof(DataGridRowDetailsVisibilityMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridRowDetailsVisibilityMode.VisibleWhenSelected, OnNotifyRowAndDetailsPropertyChanged));
3920
DependencyProperty.Register("AreRowDetailsFrozen", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(false));
3935
DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
3950
DependencyProperty.Register("RowDetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
4052
DependencyProperty.Register("CanUserResizeRows", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyRowHeaderPropertyChanged)));
4073
typeof(
DataGrid
),
4339
DataGrid
dataGrid = (
DataGrid
)sender;
4346
DataGrid
dataGrid = (
DataGrid
)sender;
4450
DependencyProperty.Register("SelectionMode", typeof(DataGridSelectionMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionMode.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4454
DataGrid
dataGrid = (
DataGrid
)d;
4512
DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged)));
4516
DataGrid
dataGrid = (
DataGrid
)d;
5312
internal ChangingSelectedCellsHelper(
DataGrid
dataGrid)
5331
private
DataGrid
_dataGrid;
5422
((
DataGrid
)d).UpdateVisualState();
5432
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders | DataGridNotificationTarget.Cells);
6199
DataGrid
focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as
DataGrid
;
6352
((
DataGrid
)sender).OnAnyMouseUp(e);
6989
public void SetValue(
DataGrid
dataGrid, object value, bool clipboard)
7078
typeof(
DataGrid
),
7093
DataGrid
dataGrid = (
DataGrid
)d;
7105
DataGrid
dataGrid = (
DataGrid
)d;
7493
DependencyProperty.Register("AutoGenerateColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnAutoGenerateColumnsPropertyChanged)));
7625
DataGrid
dataGrid = (
DataGrid
)d;
7814
DataGrid
.GenerateColumns(
7868
DataGrid
.GenerateColumns(
7884
DataGrid
dataGrid,
7926
DataGrid
dataGrid = (
DataGrid
)d;
7949
typeof(
DataGrid
),
7970
DataGrid
dataGrid = (
DataGrid
)d;
7988
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnCollection | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.CellsPresenter);
8009
typeof(
DataGrid
),
8068
typeof(
DataGrid
),
8077
DataGrid
dataGrid = (
DataGrid
)d;
8093
if (!DataGridHelper.IsDefaultValue(d,
DataGrid
.EnableRowVirtualizationProperty))
8095
return d.GetValue(
DataGrid
.EnableRowVirtualizationProperty);
8116
typeof(
DataGrid
),
8126
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.CellsPresenter | DataGridNotificationTarget.ColumnHeadersPresenter | DataGridNotificationTarget.ColumnCollection);
8137
DependencyProperty.Register("CanUserReorderColumns", typeof(bool), typeof(
DataGrid
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged)));
8152
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8167
DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(
DataGrid
), new FrameworkPropertyMetadata(null));
8236
DependencyProperty.Register("ClipboardCopyMode", typeof(DataGridClipboardCopyMode), typeof(
DataGrid
), new FrameworkPropertyMetadata(DataGridClipboardCopyMode.ExcludeHeader, new PropertyChangedCallback(OnClipboardCopyModeChanged)));
8255
((
DataGrid
)target).OnCanExecuteCopy(args);
8270
((
DataGrid
)target).OnExecutedCopy(args);
8450
typeof(
DataGrid
),
8481
((
DataGrid
)d).NotifyPropertyChanged(d, e, DataGridNotificationTarget.ColumnHeadersPresenter);
8496
typeof(
DataGrid
),
src\Framework\System\Windows\Controls\DataGridCell.cs (21)
96
DataGrid
dataGrid = _owner.DataGridOwner;
224
var
dataGrid = cell.DataGridOwner;
255
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty)
259
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == DataGridColumn.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
267
else if (e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
304
DataGrid
.CellStyleProperty);
504
var
dataGrid = row.DataGridOwner;
535
var
dataGrid = cell.DataGridOwner;
545
DataGrid
.IsReadOnlyProperty);
556
DataGrid
owner = cell.DataGridOwner;
569
DataGrid
owner = cell.DataGridOwner;
630
DataGrid
dataGridOwner = DataGridOwner;
675
DataGrid
dataGrid = cell.DataGridOwner;
794
DataGrid
dataGridOwner = DataGridOwner;
830
DataGrid
dataGridOwner = DataGridOwner;
864
DataGrid
dataGrid = DataGridOwner;
906
DataGrid
dataGridOwner = DataGridOwner;
934
DataGrid
dataGridOwner = DataGridOwner;
1036
internal
DataGrid
DataGridOwner
1042
DataGrid
dataGridOwner = _owner.DataGridOwner;
1045
dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as
DataGrid
;
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (9)
58
DataGrid
owner = cell.DataGridOwner;
64
internal DataGridCellInfo(object item, DataGridColumn column,
DataGrid
owner)
75
internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column,
DataGrid
owner)
115
private DataGridCellInfo(
DataGrid
owner, DataGridColumn column, object item)
127
internal static DataGridCellInfo CreatePossiblyPartialCellInfo(object item, DataGridColumn column,
DataGrid
owner)
228
internal bool IsValidForDataGrid(
DataGrid
dataGrid)
230
DataGrid
owner = Owner;
277
private
DataGrid
Owner
283
return (
DataGrid
)_owner.Target;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (26)
168
DataGrid
parentDataGrid = ParentDataGrid;
231
DataGrid
parentDataGrid = ParentDataGrid;
602
DataGrid
parentDataGrid = ParentDataGrid;
834
DataGrid
parentDataGrid = ParentDataGrid;
966
DataGrid
dataGrid = ParentDataGrid;
1037
DataGrid
parentDataGrid = ParentDataGrid;
1293
DataGrid
parentDataGrid = ParentDataGrid;
1309
DataGrid
parentDataGrid = ParentDataGrid;
1368
DataGrid
parentDataGrid = ParentDataGrid;
1574
DataGrid
parentDataGrid = ParentDataGrid;
1690
DataGrid
dataGrid = ParentDataGrid;
1702
DataGrid
dataGrid = ParentDataGrid;
1721
DataGrid
dataGrid = ParentDataGrid;
1733
DataGrid
dataGrid = ParentDataGrid;
1752
DataGrid
dataGrid = ParentDataGrid;
1764
DataGrid
dataGrid = ParentDataGrid;
1844
DataGrid
parentDataGrid = ParentDataGrid;
1924
DataGrid
parentDataGrid = ParentDataGrid;
1988
DataGrid
dataGrid = ParentDataGrid;
2005
DataGrid
parentDataGrid = ParentDataGrid;
2147
DataGrid
parentDataGrid = ParentDataGrid;
2239
DataGrid
parentDataGrid = ParentDataGrid;
2253
DataGrid
parentDataGrid = ParentDataGrid;
2396
DataGrid
parentDataGrid = ParentDataGrid;
2409
private
DataGrid
ParentDataGrid
2459
private
DataGrid
_parentDataGrid;
src\Framework\System\Windows\Controls\DataGridColumn.cs (30)
63
DataGrid
.ColumnHeaderStyleProperty);
138
DataGrid
.CellStyleProperty);
172
DataGrid
.IsReadOnlyProperty);
229
DataGrid
dataGrid = column.DataGridOwner;
317
DataGrid
dataGrid = column.DataGridOwner;
356
DataGrid
dataGrid = column.DataGridOwner;
399
DataGrid
.ColumnWidthProperty);
427
DataGrid
.MinColumnWidthProperty);
441
DataGrid
.MaxColumnWidthProperty);
826
if (e.Property ==
DataGrid
.MaxColumnWidthProperty || e.Property == MaxWidthProperty)
830
else if (e.Property ==
DataGrid
.MinColumnWidthProperty || e.Property == MinWidthProperty)
834
else if (e.Property ==
DataGrid
.ColumnWidthProperty || e.Property == WidthProperty)
838
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == HeaderStyleProperty)
842
else if (e.Property ==
DataGrid
.CellStyleProperty || e.Property == CellStyleProperty)
846
else if (e.Property ==
DataGrid
.IsReadOnlyProperty || e.Property == IsReadOnlyProperty)
850
else if (e.Property ==
DataGrid
.DragIndicatorStyleProperty || e.Property == DragIndicatorStyleProperty)
858
else if (e.Property ==
DataGrid
.CanUserSortColumnsProperty)
862
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty || e.Property == CanUserResizeProperty)
866
else if (e.Property ==
DataGrid
.CanUserReorderColumnsProperty || e.Property == CanUserReorderProperty)
882
DataGrid
dataGridOwner = column.DataGridOwner;
943
protected internal
DataGrid
DataGridOwner
1071
BaseValueSourceInternal parentValueSource = column.DataGridOwner.GetValueSource(
DataGrid
.CanUserSortColumnsProperty, /*metadata*/ null, out parentPropertyHasModifiers);
1074
return column.DataGridOwner.GetValue(
DataGrid
.CanUserSortColumnsProperty);
1083
DataGrid
.CanUserSortColumnsProperty);
1291
DataGrid
dataGrid = column.DataGridOwner;
1334
DataGrid
.CanUserReorderColumnsProperty);
1360
DataGrid
.DragIndicatorStyleProperty);
1456
var
owner = DataGridOwner;
1493
DataGrid
.CanUserResizeColumnsProperty);
1553
private
DataGrid
_dataGridOwner = null; // This property is updated by DataGrid when the column is added to the DataGrid.Columns collection
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (9)
24
internal DataGridColumnCollection(
DataGrid
dataGridOwner)
185
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty)
197
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
201
else if (e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty)
205
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
775
private
DataGrid
DataGridOwner
2413
DataGrid
dataGrid = DataGridOwner;
2456
DataGrid
dataGrid = DataGridOwner;
2539
private
DataGrid
_dataGridOwner;
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
51
public static bool IsGridLineVisible(
DataGrid
dataGrid, bool isHorizontal)
src\Framework\System\Windows\Controls\DataGridRow.cs (31)
197
var
dataGrid = DataGridOwner;
441
internal void PrepareRow(object item,
DataGrid
owningDataGrid)
483
internal void ClearRow(
DataGrid
owningDataGrid)
623
DataGrid
.RowHeaderStyleProperty);
634
DataGrid
.RowHeaderTemplateProperty);
645
DataGrid
.RowHeaderTemplateSelectorProperty);
661
DataGrid
.RowBackgroundProperty);
670
DataGrid
.AlternatingRowBackgroundProperty);
686
DataGrid
.RowValidationErrorTemplateProperty);
697
DataGrid
.RowDetailsTemplateProperty);
708
DataGrid
.RowDetailsTemplateSelectorProperty);
719
DataGrid
.RowDetailsVisibilityModeProperty);
752
var
owningDataGrid = row.DataGridOwner;
810
Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(
DataGrid
.DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
830
var
dataGrid = row.DataGridOwner;
883
if (e.Property ==
DataGrid
.RowBackgroundProperty || e.Property ==
DataGrid
.AlternatingRowBackgroundProperty ||
888
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == HeaderStyleProperty)
892
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == HeaderTemplateProperty)
896
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == HeaderTemplateSelectorProperty)
900
else if (e.Property ==
DataGrid
.RowValidationErrorTemplateProperty || e.Property == ValidationErrorTemplateProperty)
904
else if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DetailsTemplateProperty)
909
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DetailsTemplateSelectorProperty)
914
else if (e.Property ==
DataGrid
.RowDetailsVisibilityModeProperty || e.Property == DetailsVisibilityProperty || e.Property == IsSelectedProperty)
933
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
1091
DataGrid
grid = row.DataGridOwner;
1201
DataGrid
dataGrid = DataGridOwner;
1269
DataGrid
dataGrid = DataGridOwner;
1317
DataGrid
dataGridOwner = DataGridOwner;
1340
internal
DataGrid
DataGridOwner
1378
private
DataGrid
_owner;
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (1)
140
value =
DataGrid
.NewItemPlaceholder;
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (15)
104
var
dataGridOwner = DataGridOwner;
115
NotifyPropertyChanged(this, new DependencyPropertyChangedEventArgs(
DataGrid
.CellStyleProperty, null, null), DataGridNotificationTarget.Cells);
207
DataGrid
.RowHeightProperty);
218
DataGrid
.MinRowHeightProperty);
395
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
397
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
398
e.Property ==
DataGrid
.HorizontalScrollOffsetProperty ||
412
else if (e.Property ==
DataGrid
.RowHeightProperty || e.Property == HeightProperty)
416
else if (e.Property ==
DataGrid
.MinRowHeightProperty || e.Property == MinHeightProperty)
420
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
478
var
dataGrid = row.DataGridOwner;
522
DataGrid
.EnableColumnVirtualizationProperty);
545
DataGrid
dataGrid = DataGridOwner;
602
internal
DataGrid
DataGridOwner
629
DataGrid
owningDataGrid = (owningRow != null) ? owningRow.DataGridOwner : null;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (18)
196
DataGrid
dataGrid = column.DataGridOwner;
303
DataGrid
dataGrid = header.Column.DataGridOwner;
337
DataGrid
dataGrid = resizingColumn.DataGridOwner;
354
DataGrid
dataGrid = header.Column.DataGridOwner;
431
else if (e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty)
435
else if (e.Property ==
DataGrid
.ColumnHeaderHeightProperty || e.Property == HeightProperty)
444
else if (e.Property ==
DataGrid
.CanUserResizeColumnsProperty)
483
DataGrid
dataGrid = Column.DataGridOwner;
498
DataGrid
dataGridOwner = Column.DataGridOwner;
519
DataGrid
dataGrid = Column.DataGridOwner;
537
DataGrid
dataGrid = Column.DataGridOwner;
550
DataGrid
dataGrid = Column.DataGridOwner;
569
DataGrid
dataGrid = Column.DataGridOwner;
680
DataGrid
dataGrid = null;
703
DataGrid
.ColumnHeaderStyleProperty);
790
DataGrid
dataGrid = null;
811
DataGrid
.ColumnHeaderHeightProperty);
1119
DataGrid
dataGridOwner = column.DataGridOwner;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (15)
72
DataGrid
grid = ParentDataGrid;
150
DataGrid
dataGrid = ParentDataGrid;
302
else if (e.Property ==
DataGrid
.FrozenColumnCountProperty ||
304
e.Property ==
DataGrid
.CellsPanelHorizontalOffsetProperty ||
310
else if (e.Property ==
DataGrid
.HorizontalScrollOffsetProperty)
323
else if (e.Property ==
DataGrid
.CellsPanelActualWidthProperty)
327
else if (e.Property ==
DataGrid
.EnableColumnVirtualizationProperty)
354
if (d is
DataGrid
&&
355
(e.Property ==
DataGrid
.ColumnHeaderStyleProperty || e.Property ==
DataGrid
.ColumnHeaderHeightProperty) )
395
DataGrid
.EnableColumnVirtualizationProperty);
954
DataGrid
dataGrid = ParentDataGrid;
1041
internal
DataGrid
ParentDataGrid
1047
_parentDataGrid = DataGridHelper.FindParent<
DataGrid
>(this);
1068
private
DataGrid
_parentDataGrid = null;
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (11)
54
var
dataGrid = row != null ? row.DataGridOwner : null;
62
DataGrid
.RowDetailsTemplateProperty);
72
var
dataGrid = row != null ? row.DataGridOwner : null;
80
DataGrid
.RowDetailsTemplateSelectorProperty);
118
DataGrid
dataGridOwner = rowOwner != null ? rowOwner.DataGridOwner : null;
184
if (e.Property ==
DataGrid
.RowDetailsTemplateProperty || e.Property == DataGridRow.DetailsTemplateProperty || e.Property == ContentTemplateProperty)
188
else if (e.Property ==
DataGrid
.RowDetailsTemplateSelectorProperty || e.Property == DataGridRow.DetailsTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
217
var
dataGrid = row.DataGridOwner;
251
var
dataGrid = row.DataGridOwner;
285
var
dataGrid = row.DataGridOwner;
309
private
DataGrid
DataGridOwner
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (22)
191
DataGrid
dataGridOwner = DataGridOwner;
269
else if (e.Property ==
DataGrid
.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty)
273
else if (e.Property ==
DataGrid
.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property == ContentTemplateProperty)
277
else if (e.Property ==
DataGrid
.RowHeaderTemplateSelectorProperty || e.Property == DataGridRow.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
281
else if (e.Property ==
DataGrid
.RowHeaderWidthProperty || e.Property == WidthProperty)
289
else if (e.Property ==
DataGrid
.CanUserResizeRowsProperty)
293
else if (e.Property ==
DataGrid
.RowHeaderActualWidthProperty)
308
else if (e.Property ==
DataGrid
.CurrentItemProperty ||
311
e.Property ==
DataGrid
.IsKeyboardFocusWithinProperty)
342
var
dataGrid = row != null ? row.DataGridOwner : null;
350
DataGrid
.RowHeaderTemplateProperty);
360
var
dataGrid = row != null ? row.DataGridOwner : null;
368
DataGrid
.RowHeaderTemplateSelectorProperty);
384
DataGrid
.RowHeaderStyleProperty);
398
DataGrid
.RowHeaderWidthProperty);
412
var
dataGrid = row.DataGridOwner;
458
var
dataGrid = row.DataGridOwner;
566
DataGrid
dataGridOwner = DataGridOwner;
651
DataGrid
dataGrid = DataGridOwner;
670
DataGrid
dataGrid = DataGridOwner;
692
DataGrid
dataGrid = row.DataGridOwner;
776
private
DataGrid
DataGridOwner
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (5)
52
DataGrid
dataGrid = Owner;
87
DataGrid
dataGrid = Owner;
146
internal
DataGrid
Owner
152
_owner = ItemsControl.GetItemsOwner(this) as
DataGrid
;
163
private
DataGrid
_owner;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1947
return (itemsControl is
DataGrid
) || (itemsControl is DataGridCellsPresenter);
src\Framework\System\Windows\Controls\SelectedCellsChangedEventArgs.cs (1)
61
internal SelectedCellsChangedEventArgs(
DataGrid
owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
src\Framework\System\Windows\Controls\SelectedCellsCollection.cs (1)
40
internal SelectedCellsCollection(
DataGrid
owner) : base(owner)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
27
internal VirtualizedCellInfoCollection(
DataGrid
owner)
40
private VirtualizedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions)
54
internal static VirtualizedCellInfoCollection MakeEmptyCollection(
DataGrid
owner)
238
public VirtualizedCellInfoCollectionEnumerator(
DataGrid
owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection)
298
private
DataGrid
_owner;
1319
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, DataGridColumn column)
1325
internal RemovedCellInfoCollection(
DataGrid
owner, List<CellRegion> regions, object item)
1331
protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1563
protected
DataGrid
Owner
1610
private DataGridCellInfo GetCellInfoFromIndex(
DataGrid
owner, List<CellRegion> regions, int index)
1658
protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column,
DataGrid
owner)
1668
private
DataGrid
_owner;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
12220
DataGrid
dg = ic as
DataGrid
;
src\Framework\System\Windows\SystemResourceKey.cs (4)
1935
_focusBorderBrushKey = new ComponentResourceKey(typeof(
DataGrid
), "FocusBorderBrushKey");
1948
_textBlockComboBoxStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "TextBlockComboBoxStyleKey");
1973
_columnFloatingHeaderStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "ColumnFloatingHeaderStyleKey");
1986
_columnHeaderDropSeparatorStyleKey = new ComponentResourceKey(typeof(
DataGrid
), "ColumnHeaderDropSeparatorStyleKey");
System.Activities.Presentation (29)
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (3)
24
public static void OnAddAnnotationCommandCanExecute(CanExecuteRoutedEventArgs e, EditingContext editingContext,
DataGrid
dataGrid)
47
public static void OnDeleteAnnotationCommandCanExecute(CanExecuteRoutedEventArgs e, EditingContext editingContext,
DataGrid
dataGrid)
80
public static void OnDeleteCommandCanExecute(CanExecuteRoutedEventArgs e,
DataGrid
dataGrid)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
603
DataGridHelper.DataGridCellGotFocus((
DataGrid
)sender, e);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (22)
47
DependencyProperty.RegisterAttached("DGHelper", typeof(DataGridHelper), typeof(
DataGrid
), new UIPropertyMetadata(null));
75
DataGrid
dataGrid;
82
public DataGridHelper(
DataGrid
instance, Control owner)
254
public Func<
DataGrid
, object, object> NotifyNewRowAddedCallback
280
internal
DataGrid
DataGrid
635
DataGrid
dg = VisualTreeUtils.FindVisualAncestor<
DataGrid
>(ctrl);
894
var
dataGrid = VisualTreeUtils.FindVisualAncestor<
DataGrid
>(dataGridCell);
919
internal static void DataGridCellGotFocus(
DataGrid
dataGrid, RoutedEventArgs e)
991
public static DataGridCell GetCell(
DataGrid
dataGrid, int row, int column)
1016
internal static ModelItem GetSingleSelectedObject(
DataGrid
dataGrid)
1041
public static DataGridRow GetRow(
DataGrid
dataGrid, int index)
1078
public static void CommitPendingEdits(
DataGrid
dataGrid)
1116
public static void OnDeleteSelectedItems(
DataGrid
dataGrid)
1179
protected
DataGrid
OwnerDataGrid
1185
public EditingControlBehavior(
DataGrid
dataGrid)
1212
public DefaultControlBehavior(
DataGrid
dataGrid)
1232
public TextBoxBehavior(
DataGrid
dataGrid)
1266
public VBIdentifierDesignerBehavior(
DataGrid
dataGrid)
1332
public TypePresenterBehavior(
DataGrid
dataGrid)
1398
public ExpressionTextBoxBehavior(
DataGrid
dataGrid)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
229
DataGrid
importsDataGrid = sender as
DataGrid
;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
613
DataGridHelper.DataGridCellGotFocus((
DataGrid
)sender, e);