1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
807
return new
DataGridRow
();
233 references to DataGridRow
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\ChangeSignatureDialog.xaml.cs (3)
207
if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not
DataGridRow
row)
210
row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as
DataGridRow
;
224
private static void FocusRow(
DataGridRow
row)
PresentationFramework (230)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
358
internal void RaiseAutomationRowInvokeEvents(
DataGridRow
row)
366
internal void RaiseAutomationCellInvokeEvents(DataGridColumn column,
DataGridRow
row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
413
DataGridRow
row = GetWrapper() as
DataGridRow
;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
20
public DataGridRowAutomationPeer(
DataGridRow
owner)
121
private
DataGridRow
OwningDataGridRow
125
return (
DataGridRow
)Owner;
System\Windows\Controls\DataGrid.cs (74)
615
DataGridRow
row = container as
DataGridRow
;
629
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
798
return item is
DataGridRow
;
819
DataGridRow
row = (
DataGridRow
)element;
830
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
849
DataGridRow
row = (
DataGridRow
)element;
853
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
868
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
1146
var
row = e.Row;
1156
var
row = (
DataGridRow
)arg;
1174
var
row = e.Row;
1294
_itemAttachedStorage.SetValue(item,
DataGridRow
.DetailsVisibilityProperty, detailsVisibility);
1296
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1308
if (_itemAttachedStorage.TryGetValue(item,
DataGridRow
.DetailsVisibilityProperty, out detailsVisibility))
1313
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1337
_itemAttachedStorage.ClearValue(item,
DataGridRow
.DetailsVisibilityProperty);
1339
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1340
row?.ClearValue(
DataGridRow
.DetailsVisibilityProperty);
1621
DataGridRow
row = _rowTrackingRoot.Container;
1642
DataGridRow
row = ContainerFromItemInfo(info) as
DataGridRow
;
1647
row = ContainerFromItemInfo(info) as
DataGridRow
;
1799
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromIndex(info.Index);
1898
DataGridRow
row = _rowTrackingRoot.Container;
1915
DataGridRow
row = _rowTrackingRoot.Container;
3053
internal bool IsCurrent(
DataGridRow
row, DataGridColumn column = null)
3778
DataGridRow
newItemPlaceholderRow = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder);
3927
internal void OnLoadingRowDetailsWrapper(
DataGridRow
row)
3940
internal void OnUnloadingRowDetailsWrapper(
DataGridRow
row)
3984
var
row = e.Row;
4051
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
4054
DataGridRow
row = tracker.Container;
4564
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4582
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4585
DataGridRow
row = rowTracker.Container;
4715
internal void HandleSelectionForRowHeaderAndDetailsInput(
DataGridRow
row, bool startDragging)
5842
DataGridRow
focusRow = DataGridHelper.FindVisualParent<
DataGridRow
>(focusContainer);
6135
DataGridRow
startingRow = startingElement as
DataGridRow
;
6138
startingRow = DataGridHelper.FindVisualParent<
DataGridRow
>(startingElement);
6153
DataGridRow
targetRowElement = targetElement as
DataGridRow
;
6156
targetRowElement = DataGridHelper.FindVisualParent<
DataGridRow
>(targetElement);
6222
DataGridRow
row = MouseOverRow;
6236
DataGridRow
row = MouseOverRow;
6260
DataGridRow
row = GetRowNearMouse();
6349
DataGridRow
parentRow = rowHeader.ParentRow;
6364
private
DataGridRow
GetRowNearMouse()
6377
DataGridRow
row = null;
6382
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6386
row = itemsHost.Children[i] as
DataGridRow
;
6426
DataGridRow
row = null;
6431
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6435
row = itemsHost.Children[i] as
DataGridRow
;
6503
private static bool CalculateCellDistance(FrameworkElement cell,
DataGridRow
rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6557
private
DataGridRow
MouseOverRow
6562
DataGridRow
row = null;
6566
row = DataGridHelper.FindVisualParent<
DataGridRow
>(element);
6991
DataGridRow
row = (
DataGridRow
)info.Container;
7004
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
8494
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
8590
private ContainerTracking<
DataGridRow
> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
17
public DataGridBeginningEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs)
44
public
DataGridRow
Row
59
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
76
internal void PrepareCell(object item, ItemsControl cellsPresenter,
DataGridRow
ownerRow)
87
internal void PrepareCell(object item,
DataGridRow
ownerRow, int index)
135
internal void ClearCell(
DataGridRow
ownerRow)
376
var
row = RowOwner;
494
var
row = RowOwner;
1082
internal
DataGridRow
RowOwner
1091
DataGridRow
row = RowOwner;
1121
private
DataGridRow
_owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
18
public DataGridCellEditEndingEventArgs(DataGridColumn column,
DataGridRow
row, FrameworkElement editingElement, DataGridEditAction editAction)
46
public
DataGridRow
Row
69
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1842
DataGridRow
row = presenter.DataGridRowOwner;
2399
DataGridRow
row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
618
DataGridRow
row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as
DataGridRow
;
633
public FrameworkElement GetCellContent(
DataGridRow
dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
19
public DataGridPreparingCellForEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement)
38
public
DataGridRow
Row
60
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
96
VisibilityProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnCoerceVisibility));
97
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(typeof(
DataGridRow
)));
98
ItemsPanelProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel)))));
99
FocusableProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
100
BackgroundProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
101
BindingGroupProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged));
104
SnapsToDevicePixelsProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange));
105
IsMouseOverPropertyKey.OverrideMetadata(typeof(
DataGridRow
), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
106
VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize)));
107
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
115
_tracker = new ContainerTracking<
DataGridRow
>(this);
136
DependencyProperty.Register("Item", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
168
public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(
DataGridRow
));
273
DependencyProperty.Register("Header", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
297
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
312
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
327
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
342
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
361
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
376
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
391
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(
DataGridRow
), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
516
internal ContainerTracking<
DataGridRow
> Tracker
599
var
row = (
DataGridRow
)d;
610
var
row = (
DataGridRow
)d;
621
var
row = (
DataGridRow
)d;
632
var
row = (
DataGridRow
)d;
662
var
row = (
DataGridRow
)d;
673
var
row = (
DataGridRow
)d;
684
var
row = (
DataGridRow
)d;
695
var
row = (
DataGridRow
)d;
732
var
row = (
DataGridRow
)d;
749
var
row = (
DataGridRow
)d;
766
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
771
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
776
DataGridRow
row = (
DataGridRow
)d;
795
var
row = (
DataGridRow
)d;
807
var
row = (
DataGridRow
)arg;
909
else if (e.Property ==
DataGridRow
.IsEditingProperty ||
910
e.Property ==
DataGridRow
.IsMouseOverProperty ||
1019
public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(
DataGridRow
));
1044
typeof(
DataGridRow
),
1049
DataGridRow
row = (
DataGridRow
)sender;
1100
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
DataGridRow
));
1130
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
DataGridRow
));
1190
DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged));
1253
DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
1292
public static
DataGridRow
GetRowContainingElement(FrameworkElement element)
1294
return DataGridHelper.FindVisualParent<
DataGridRow
>(element);
1339
private ContainerTracking<
DataGridRow
> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
8
public DataGridRowDetailsEventArgs(
DataGridRow
row, FrameworkElement detailsElement)
19
public
DataGridRow
Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
16
public DataGridRowEditEndingEventArgs(
DataGridRow
row, DataGridEditAction editAction)
34
public
DataGridRow
Row
48
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
8
public DataGridRowEventArgs(
DataGridRow
row)
13
public
DataGridRow
Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
77
DataGridRow
owningRow = DataGridRowOwner;
154
DataGridRow
row = DataGridRowOwner;
305
DataGridRow
rowOwner = DataGridRowOwner;
323
DataGridRow
rowOwner = DataGridRowOwner;
462
var
row = DataGridRowOwner;
598
DataGridRow
parent = DataGridRowOwner;
611
internal
DataGridRow
DataGridRowOwner
613
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
620
DataGridRow
owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
48
var
row = details.DataGridRowOwner;
55
DataGridRow
.DetailsTemplateProperty,
66
var
row = details.DataGridRowOwner;
73
DataGridRow
.DetailsTemplateSelectorProperty,
88
DataGridRow
owner = DataGridRowOwner;
112
DataGridRow
rowOwner = DataGridRowOwner;
159
DataGridRow
owner = DataGridRowOwner;
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)
206
var
row = DataGridRowOwner;
240
var
row = DataGridRowOwner;
274
var
row = DataGridRowOwner;
310
DataGridRow
owner = DataGridRowOwner;
323
internal
DataGridRow
DataGridRowOwner
325
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
210
DataGridRow
parent = ParentRow;
258
if (e.Property ==
DataGridRow
.HeaderProperty || e.Property == ContentProperty)
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)
278
else if (e.Property ==
DataGridRow
.IsSelectedProperty)
302
e.Property ==
DataGridRow
.IsEditingProperty ||
303
e.Property ==
DataGridRow
.IsMouseOverProperty ||
325
DataGridRow
.HeaderProperty);
334
var
row = header.ParentRow;
341
DataGridRow
.HeaderTemplateProperty,
352
var
row = header.ParentRow;
359
DataGridRow
.HeaderTemplateSelectorProperty,
375
DataGridRow
.HeaderStyleProperty,
402
var
row = ParentRow;
420
var
row = ParentRow;
434
var
row = ParentRow;
448
var
row = ParentRow;
536
DataGridRow
parent = header.ParentRow;
560
DataGridRow
parentRow = ParentRow;
645
DataGridRow
parent = ParentRow;
678
private
DataGridRow
PreviousRow
682
DataGridRow
row = ParentRow;
691
return (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
704
private
DataGridRow
RowToResize(object gripper)
712
DataGridRow
rowToResize = RowToResize(sender);
722
DataGridRow
rowToResize = RowToResize(sender);
733
DataGridRow
rowToResize = RowToResize(sender);
743
DataGridRow
rowToResize = RowToResize(sender);
761
internal
DataGridRow
ParentRow
765
return DataGridHelper.FindParent<
DataGridRow
>(this);
773
DataGridRow
parent = ParentRow;