1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
811
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)
368
internal void RaiseAutomationRowInvokeEvents(
DataGridRow
row)
379
internal void RaiseAutomationCellInvokeEvents(DataGridColumn column,
DataGridRow
row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
414
DataGridRow
row = GetWrapper() as
DataGridRow
;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
21
public DataGridRowAutomationPeer(
DataGridRow
owner)
122
private
DataGridRow
OwningDataGridRow
126
return (
DataGridRow
)Owner;
System\Windows\Controls\DataGrid.cs (74)
616
DataGridRow
row = container as
DataGridRow
;
633
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
802
return item is
DataGridRow
;
823
DataGridRow
row = (
DataGridRow
)element;
834
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
853
DataGridRow
row = (
DataGridRow
)element;
857
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
872
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
1150
var
row = e.Row;
1160
var
row = (
DataGridRow
)arg;
1181
var
row = e.Row;
1301
_itemAttachedStorage.SetValue(item,
DataGridRow
.DetailsVisibilityProperty, detailsVisibility);
1303
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1318
if (_itemAttachedStorage.TryGetValue(item,
DataGridRow
.DetailsVisibilityProperty, out detailsVisibility))
1323
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1347
_itemAttachedStorage.ClearValue(item,
DataGridRow
.DetailsVisibilityProperty);
1349
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1352
row.ClearValue(
DataGridRow
.DetailsVisibilityProperty);
1634
DataGridRow
row = _rowTrackingRoot.Container;
1655
DataGridRow
row = ContainerFromItemInfo(info) as
DataGridRow
;
1660
row = ContainerFromItemInfo(info) as
DataGridRow
;
1810
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromIndex(info.Index);
1912
DataGridRow
row = _rowTrackingRoot.Container;
1929
DataGridRow
row = _rowTrackingRoot.Container;
3080
internal bool IsCurrent(
DataGridRow
row, DataGridColumn column = null)
3808
DataGridRow
newItemPlaceholderRow = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder);
3960
internal void OnLoadingRowDetailsWrapper(
DataGridRow
row)
3973
internal void OnUnloadingRowDetailsWrapper(
DataGridRow
row)
4017
var
row = e.Row;
4084
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
4087
DataGridRow
row = tracker.Container;
4603
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4621
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4624
DataGridRow
row = rowTracker.Container;
4757
internal void HandleSelectionForRowHeaderAndDetailsInput(
DataGridRow
row, bool startDragging)
5887
DataGridRow
focusRow = DataGridHelper.FindVisualParent<
DataGridRow
>(focusContainer);
6183
DataGridRow
startingRow = startingElement as
DataGridRow
;
6186
startingRow = DataGridHelper.FindVisualParent<
DataGridRow
>(startingElement);
6201
DataGridRow
targetRowElement = targetElement as
DataGridRow
;
6204
targetRowElement = DataGridHelper.FindVisualParent<
DataGridRow
>(targetElement);
6270
DataGridRow
row = MouseOverRow;
6284
DataGridRow
row = MouseOverRow;
6308
DataGridRow
row = GetRowNearMouse();
6397
DataGridRow
parentRow = rowHeader.ParentRow;
6412
private
DataGridRow
GetRowNearMouse()
6425
DataGridRow
row = null;
6430
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6434
row = itemsHost.Children[i] as
DataGridRow
;
6474
DataGridRow
row = null;
6479
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6483
row = itemsHost.Children[i] as
DataGridRow
;
6551
private static bool CalculateCellDistance(FrameworkElement cell,
DataGridRow
rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6605
private
DataGridRow
MouseOverRow
6610
DataGridRow
row = null;
6614
row = DataGridHelper.FindVisualParent<
DataGridRow
>(element);
7038
DataGridRow
row = (
DataGridRow
)info.Container;
7051
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
8544
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
8640
private ContainerTracking<
DataGridRow
> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
18
public DataGridBeginningEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs)
45
public
DataGridRow
Row
60
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
77
internal void PrepareCell(object item, ItemsControl cellsPresenter,
DataGridRow
ownerRow)
88
internal void PrepareCell(object item,
DataGridRow
ownerRow, int index)
136
internal void ClearCell(
DataGridRow
ownerRow)
380
var
row = RowOwner;
498
var
row = RowOwner;
1100
internal
DataGridRow
RowOwner
1109
DataGridRow
row = RowOwner;
1139
private
DataGridRow
_owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
19
public DataGridCellEditEndingEventArgs(DataGridColumn column,
DataGridRow
row, FrameworkElement editingElement, DataGridEditAction editAction)
47
public
DataGridRow
Row
70
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1854
DataGridRow
row = presenter.DataGridRowOwner;
2411
DataGridRow
row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
619
DataGridRow
row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as
DataGridRow
;
634
public FrameworkElement GetCellContent(
DataGridRow
dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
20
public DataGridPreparingCellForEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement)
39
public
DataGridRow
Row
61
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
97
VisibilityProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnCoerceVisibility));
98
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(typeof(
DataGridRow
)));
99
ItemsPanelProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel)))));
100
FocusableProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
101
BackgroundProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
102
BindingGroupProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged));
105
SnapsToDevicePixelsProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange));
106
IsMouseOverPropertyKey.OverrideMetadata(typeof(
DataGridRow
), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
107
VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize)));
108
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
116
_tracker = new ContainerTracking<
DataGridRow
>(this);
137
DependencyProperty.Register("Item", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
172
public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(
DataGridRow
));
277
DependencyProperty.Register("Header", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
301
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
316
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
331
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
346
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
365
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
380
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
395
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(
DataGridRow
), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
523
internal ContainerTracking<
DataGridRow
> Tracker
612
var
row = (
DataGridRow
)d;
623
var
row = (
DataGridRow
)d;
634
var
row = (
DataGridRow
)d;
645
var
row = (
DataGridRow
)d;
675
var
row = (
DataGridRow
)d;
686
var
row = (
DataGridRow
)d;
697
var
row = (
DataGridRow
)d;
708
var
row = (
DataGridRow
)d;
746
var
row = (
DataGridRow
)d;
763
var
row = (
DataGridRow
)d;
780
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
785
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
790
DataGridRow
row = (
DataGridRow
)d;
812
var
row = (
DataGridRow
)d;
824
var
row = (
DataGridRow
)arg;
926
else if (e.Property ==
DataGridRow
.IsEditingProperty ||
927
e.Property ==
DataGridRow
.IsMouseOverProperty ||
1048
public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(
DataGridRow
));
1073
typeof(
DataGridRow
),
1078
DataGridRow
row = (
DataGridRow
)sender;
1132
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
DataGridRow
));
1162
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
DataGridRow
));
1222
DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged));
1291
DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
1330
public static
DataGridRow
GetRowContainingElement(FrameworkElement element)
1332
return DataGridHelper.FindVisualParent<
DataGridRow
>(element);
1377
private ContainerTracking<
DataGridRow
> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
9
public DataGridRowDetailsEventArgs(
DataGridRow
row, FrameworkElement detailsElement)
20
public
DataGridRow
Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
17
public DataGridRowEditEndingEventArgs(
DataGridRow
row, DataGridEditAction editAction)
35
public
DataGridRow
Row
49
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
9
public DataGridRowEventArgs(
DataGridRow
row)
14
public
DataGridRow
Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
78
DataGridRow
owningRow = DataGridRowOwner;
155
DataGridRow
row = DataGridRowOwner;
306
DataGridRow
rowOwner = DataGridRowOwner;
324
DataGridRow
rowOwner = DataGridRowOwner;
466
var
row = DataGridRowOwner;
600
DataGridRow
parent = DataGridRowOwner;
613
internal
DataGridRow
DataGridRowOwner
615
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
622
DataGridRow
owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
49
var
row = details.DataGridRowOwner;
56
DataGridRow
.DetailsTemplateProperty,
67
var
row = details.DataGridRowOwner;
74
DataGridRow
.DetailsTemplateSelectorProperty,
89
DataGridRow
owner = DataGridRowOwner;
113
DataGridRow
rowOwner = DataGridRowOwner;
160
DataGridRow
owner = DataGridRowOwner;
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)
207
var
row = DataGridRowOwner;
241
var
row = DataGridRowOwner;
275
var
row = DataGridRowOwner;
309
DataGridRow
owner = DataGridRowOwner;
322
internal
DataGridRow
DataGridRowOwner
324
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
211
DataGridRow
parent = ParentRow;
259
if (e.Property ==
DataGridRow
.HeaderProperty || e.Property == ContentProperty)
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)
279
else if (e.Property ==
DataGridRow
.IsSelectedProperty)
303
e.Property ==
DataGridRow
.IsEditingProperty ||
304
e.Property ==
DataGridRow
.IsMouseOverProperty ||
326
DataGridRow
.HeaderProperty);
335
var
row = header.ParentRow;
342
DataGridRow
.HeaderTemplateProperty,
353
var
row = header.ParentRow;
360
DataGridRow
.HeaderTemplateSelectorProperty,
376
DataGridRow
.HeaderStyleProperty,
403
var
row = ParentRow;
421
var
row = ParentRow;
435
var
row = ParentRow;
449
var
row = ParentRow;
537
DataGridRow
parent = header.ParentRow;
561
DataGridRow
parentRow = ParentRow;
646
DataGridRow
parent = ParentRow;
679
private
DataGridRow
PreviousRow
683
DataGridRow
row = ParentRow;
692
return (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
705
private
DataGridRow
RowToResize(object gripper)
713
DataGridRow
rowToResize = RowToResize(sender);
723
DataGridRow
rowToResize = RowToResize(sender);
734
DataGridRow
rowToResize = RowToResize(sender);
744
DataGridRow
rowToResize = RowToResize(sender);
762
internal
DataGridRow
ParentRow
766
return DataGridHelper.FindParent<
DataGridRow
>(this);
774
DataGridRow
parent = ParentRow;