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);
1311
if (_itemAttachedStorage.TryGetValue(item,
DataGridRow
.DetailsVisibilityProperty, out detailsVisibility))
1316
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1340
_itemAttachedStorage.ClearValue(item,
DataGridRow
.DetailsVisibilityProperty);
1342
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1343
row?.ClearValue(
DataGridRow
.DetailsVisibilityProperty);
1624
DataGridRow
row = _rowTrackingRoot.Container;
1645
DataGridRow
row = ContainerFromItemInfo(info) as
DataGridRow
;
1650
row = ContainerFromItemInfo(info) as
DataGridRow
;
1802
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromIndex(info.Index);
1904
DataGridRow
row = _rowTrackingRoot.Container;
1921
DataGridRow
row = _rowTrackingRoot.Container;
3059
internal bool IsCurrent(
DataGridRow
row, DataGridColumn column = null)
3784
DataGridRow
newItemPlaceholderRow = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder);
3933
internal void OnLoadingRowDetailsWrapper(
DataGridRow
row)
3946
internal void OnUnloadingRowDetailsWrapper(
DataGridRow
row)
3990
var
row = e.Row;
4057
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
4060
DataGridRow
row = tracker.Container;
4570
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4588
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4591
DataGridRow
row = rowTracker.Container;
4721
internal void HandleSelectionForRowHeaderAndDetailsInput(
DataGridRow
row, bool startDragging)
5848
DataGridRow
focusRow = DataGridHelper.FindVisualParent<
DataGridRow
>(focusContainer);
6141
DataGridRow
startingRow = startingElement as
DataGridRow
;
6144
startingRow = DataGridHelper.FindVisualParent<
DataGridRow
>(startingElement);
6159
DataGridRow
targetRowElement = targetElement as
DataGridRow
;
6162
targetRowElement = DataGridHelper.FindVisualParent<
DataGridRow
>(targetElement);
6228
DataGridRow
row = MouseOverRow;
6242
DataGridRow
row = MouseOverRow;
6266
DataGridRow
row = GetRowNearMouse();
6355
DataGridRow
parentRow = rowHeader.ParentRow;
6370
private
DataGridRow
GetRowNearMouse()
6383
DataGridRow
row = null;
6388
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6392
row = itemsHost.Children[i] as
DataGridRow
;
6432
DataGridRow
row = null;
6437
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6441
row = itemsHost.Children[i] as
DataGridRow
;
6509
private static bool CalculateCellDistance(FrameworkElement cell,
DataGridRow
rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6563
private
DataGridRow
MouseOverRow
6568
DataGridRow
row = null;
6572
row = DataGridHelper.FindVisualParent<
DataGridRow
>(element);
6997
DataGridRow
row = (
DataGridRow
)info.Container;
7010
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
8500
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
8596
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;
1085
internal
DataGridRow
RowOwner
1094
DataGridRow
row = RowOwner;
1124
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)
1848
DataGridRow
row = presenter.DataGridRowOwner;
2405
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)));
171
public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(
DataGridRow
));
276
DependencyProperty.Register("Header", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
300
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
315
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
330
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
345
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
364
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
379
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
394
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(
DataGridRow
), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
522
internal ContainerTracking<
DataGridRow
> Tracker
605
var
row = (
DataGridRow
)d;
616
var
row = (
DataGridRow
)d;
627
var
row = (
DataGridRow
)d;
638
var
row = (
DataGridRow
)d;
668
var
row = (
DataGridRow
)d;
679
var
row = (
DataGridRow
)d;
690
var
row = (
DataGridRow
)d;
701
var
row = (
DataGridRow
)d;
738
var
row = (
DataGridRow
)d;
755
var
row = (
DataGridRow
)d;
772
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
777
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
782
DataGridRow
row = (
DataGridRow
)d;
801
var
row = (
DataGridRow
)d;
813
var
row = (
DataGridRow
)arg;
915
else if (e.Property ==
DataGridRow
.IsEditingProperty ||
916
e.Property ==
DataGridRow
.IsMouseOverProperty ||
1025
public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(
DataGridRow
));
1050
typeof(
DataGridRow
),
1055
DataGridRow
row = (
DataGridRow
)sender;
1106
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
DataGridRow
));
1136
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
DataGridRow
));
1196
DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged));
1259
DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
1298
public static
DataGridRow
GetRowContainingElement(FrameworkElement element)
1300
return DataGridHelper.FindVisualParent<
DataGridRow
>(element);
1345
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;