1 instantiation of DataGridRow
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
814
return new
DataGridRow
();
233 references to DataGridRow
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\ChangeSignatureDialog.xaml.cs (3)
206
if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not
DataGridRow
row)
209
row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as
DataGridRow
;
223
private static void FocusRow(
DataGridRow
row)
PresentationFramework (230)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
373
internal void RaiseAutomationRowInvokeEvents(
DataGridRow
row)
384
internal void RaiseAutomationCellInvokeEvents(DataGridColumn column,
DataGridRow
row)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
419
DataGridRow
row = GetWrapper() as
DataGridRow
;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
25
public DataGridRowAutomationPeer(
DataGridRow
owner)
126
private
DataGridRow
OwningDataGridRow
130
return (
DataGridRow
)Owner;
System\Windows\Controls\DataGrid.cs (74)
619
DataGridRow
row = container as
DataGridRow
;
636
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
805
return item is
DataGridRow
;
826
DataGridRow
row = (
DataGridRow
)element;
837
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
856
DataGridRow
row = (
DataGridRow
)element;
860
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
875
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
1153
var
row = e.Row;
1163
var
row = (
DataGridRow
)arg;
1184
var
row = e.Row;
1304
_itemAttachedStorage.SetValue(item,
DataGridRow
.DetailsVisibilityProperty, detailsVisibility);
1306
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1321
if (_itemAttachedStorage.TryGetValue(item,
DataGridRow
.DetailsVisibilityProperty, out detailsVisibility))
1326
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1350
_itemAttachedStorage.ClearValue(item,
DataGridRow
.DetailsVisibilityProperty);
1352
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1355
row.ClearValue(
DataGridRow
.DetailsVisibilityProperty);
1637
DataGridRow
row = _rowTrackingRoot.Container;
1658
DataGridRow
row = ContainerFromItemInfo(info) as
DataGridRow
;
1663
row = ContainerFromItemInfo(info) as
DataGridRow
;
1813
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromIndex(info.Index);
1915
DataGridRow
row = _rowTrackingRoot.Container;
1932
DataGridRow
row = _rowTrackingRoot.Container;
3083
internal bool IsCurrent(
DataGridRow
row, DataGridColumn column = null)
3811
DataGridRow
newItemPlaceholderRow = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder);
3963
internal void OnLoadingRowDetailsWrapper(
DataGridRow
row)
3976
internal void OnUnloadingRowDetailsWrapper(
DataGridRow
row)
4020
var
row = e.Row;
4087
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
4090
DataGridRow
row = tracker.Container;
4606
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4624
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4627
DataGridRow
row = rowTracker.Container;
4760
internal void HandleSelectionForRowHeaderAndDetailsInput(
DataGridRow
row, bool startDragging)
5890
DataGridRow
focusRow = DataGridHelper.FindVisualParent<
DataGridRow
>(focusContainer);
6186
DataGridRow
startingRow = startingElement as
DataGridRow
;
6189
startingRow = DataGridHelper.FindVisualParent<
DataGridRow
>(startingElement);
6204
DataGridRow
targetRowElement = targetElement as
DataGridRow
;
6207
targetRowElement = DataGridHelper.FindVisualParent<
DataGridRow
>(targetElement);
6273
DataGridRow
row = MouseOverRow;
6287
DataGridRow
row = MouseOverRow;
6311
DataGridRow
row = GetRowNearMouse();
6400
DataGridRow
parentRow = rowHeader.ParentRow;
6415
private
DataGridRow
GetRowNearMouse()
6428
DataGridRow
row = null;
6433
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6437
row = itemsHost.Children[i] as
DataGridRow
;
6477
DataGridRow
row = null;
6482
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6486
row = itemsHost.Children[i] as
DataGridRow
;
6554
private static bool CalculateCellDistance(FrameworkElement cell,
DataGridRow
rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6608
private
DataGridRow
MouseOverRow
6613
DataGridRow
row = null;
6617
row = DataGridHelper.FindVisualParent<
DataGridRow
>(element);
7041
DataGridRow
row = (
DataGridRow
)info.Container;
7054
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
8547
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
8643
private ContainerTracking<
DataGridRow
> _rowTrackingRoot; // Root of a linked list of active row containers
System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
23
public DataGridBeginningEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs)
50
public
DataGridRow
Row
65
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCell.cs (8)
84
internal void PrepareCell(object item, ItemsControl cellsPresenter,
DataGridRow
ownerRow)
95
internal void PrepareCell(object item,
DataGridRow
ownerRow, int index)
143
internal void ClearCell(
DataGridRow
ownerRow)
387
var
row = RowOwner;
505
var
row = RowOwner;
1107
internal
DataGridRow
RowOwner
1116
DataGridRow
row = RowOwner;
1146
private
DataGridRow
_owner;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
24
public DataGridCellEditEndingEventArgs(DataGridColumn column,
DataGridRow
row, FrameworkElement editingElement, DataGridEditAction editAction)
52
public
DataGridRow
Row
75
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (2)
1858
DataGridRow
row = presenter.DataGridRowOwner;
2415
DataGridRow
row = presenter.DataGridRowOwner;
System\Windows\Controls\DataGridColumn.cs (3)
622
DataGridRow
row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as
DataGridRow
;
637
public FrameworkElement GetCellContent(
DataGridRow
dataGridRow)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
25
public DataGridPreparingCellForEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement)
44
public
DataGridRow
Row
66
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRow.cs (64)
101
VisibilityProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnCoerceVisibility));
102
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(typeof(
DataGridRow
)));
103
ItemsPanelProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel)))));
104
FocusableProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
105
BackgroundProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
106
BindingGroupProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged));
109
SnapsToDevicePixelsProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange));
110
IsMouseOverPropertyKey.OverrideMetadata(typeof(
DataGridRow
), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
111
VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize)));
112
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
120
_tracker = new ContainerTracking<
DataGridRow
>(this);
141
DependencyProperty.Register("Item", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
176
public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(
DataGridRow
));
281
DependencyProperty.Register("Header", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
305
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
320
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
335
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
350
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
369
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
384
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
399
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(
DataGridRow
), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
527
internal ContainerTracking<
DataGridRow
> Tracker
616
var
row = (
DataGridRow
)d;
627
var
row = (
DataGridRow
)d;
638
var
row = (
DataGridRow
)d;
649
var
row = (
DataGridRow
)d;
679
var
row = (
DataGridRow
)d;
690
var
row = (
DataGridRow
)d;
701
var
row = (
DataGridRow
)d;
712
var
row = (
DataGridRow
)d;
750
var
row = (
DataGridRow
)d;
767
var
row = (
DataGridRow
)d;
784
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
789
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
794
DataGridRow
row = (
DataGridRow
)d;
816
var
row = (
DataGridRow
)d;
828
var
row = (
DataGridRow
)arg;
930
else if (e.Property ==
DataGridRow
.IsEditingProperty ||
931
e.Property ==
DataGridRow
.IsMouseOverProperty ||
1052
public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(
DataGridRow
));
1077
typeof(
DataGridRow
),
1082
DataGridRow
row = (
DataGridRow
)sender;
1136
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
DataGridRow
));
1166
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
DataGridRow
));
1226
DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged));
1295
DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
1334
public static
DataGridRow
GetRowContainingElement(FrameworkElement element)
1336
return DataGridHelper.FindVisualParent<
DataGridRow
>(element);
1381
private ContainerTracking<
DataGridRow
> _tracker;
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
13
public DataGridRowDetailsEventArgs(
DataGridRow
row, FrameworkElement detailsElement)
24
public
DataGridRow
Row
System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
22
public DataGridRowEditEndingEventArgs(
DataGridRow
row, DataGridEditAction editAction)
40
public
DataGridRow
Row
54
private
DataGridRow
_dataGridRow;
System\Windows\Controls\DataGridRowEventArgs.cs (2)
13
public DataGridRowEventArgs(
DataGridRow
row)
18
public
DataGridRow
Row
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
83
DataGridRow
owningRow = DataGridRowOwner;
160
DataGridRow
row = DataGridRowOwner;
311
DataGridRow
rowOwner = DataGridRowOwner;
329
DataGridRow
rowOwner = DataGridRowOwner;
471
var
row = DataGridRowOwner;
605
DataGridRow
parent = DataGridRowOwner;
618
internal
DataGridRow
DataGridRowOwner
620
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
627
DataGridRow
owningRow = DataGridRowOwner;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (15)
53
var
row = details.DataGridRowOwner;
60
DataGridRow
.DetailsTemplateProperty,
71
var
row = details.DataGridRowOwner;
78
DataGridRow
.DetailsTemplateSelectorProperty,
93
DataGridRow
owner = DataGridRowOwner;
117
DataGridRow
rowOwner = DataGridRowOwner;
164
DataGridRow
owner = DataGridRowOwner;
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)
211
var
row = DataGridRowOwner;
245
var
row = DataGridRowOwner;
279
var
row = DataGridRowOwner;
313
DataGridRow
owner = DataGridRowOwner;
326
internal
DataGridRow
DataGridRowOwner
328
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
216
DataGridRow
parent = ParentRow;
264
if (e.Property ==
DataGridRow
.HeaderProperty || e.Property == ContentProperty)
268
else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property ==
DataGridRow
.HeaderStyleProperty || e.Property == StyleProperty)
272
else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property ==
DataGridRow
.HeaderTemplateProperty || e.Property == ContentTemplateProperty)
276
else if (e.Property == DataGrid.RowHeaderTemplateSelectorProperty || e.Property ==
DataGridRow
.HeaderTemplateSelectorProperty || e.Property == ContentTemplateSelectorProperty)
284
else if (e.Property ==
DataGridRow
.IsSelectedProperty)
308
e.Property ==
DataGridRow
.IsEditingProperty ||
309
e.Property ==
DataGridRow
.IsMouseOverProperty ||
331
DataGridRow
.HeaderProperty);
340
var
row = header.ParentRow;
347
DataGridRow
.HeaderTemplateProperty,
358
var
row = header.ParentRow;
365
DataGridRow
.HeaderTemplateSelectorProperty,
381
DataGridRow
.HeaderStyleProperty,
408
var
row = ParentRow;
426
var
row = ParentRow;
440
var
row = ParentRow;
454
var
row = ParentRow;
542
DataGridRow
parent = header.ParentRow;
566
DataGridRow
parentRow = ParentRow;
651
DataGridRow
parent = ParentRow;
684
private
DataGridRow
PreviousRow
688
DataGridRow
row = ParentRow;
697
return (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
710
private
DataGridRow
RowToResize(object gripper)
718
DataGridRow
rowToResize = RowToResize(sender);
728
DataGridRow
rowToResize = RowToResize(sender);
739
DataGridRow
rowToResize = RowToResize(sender);
749
DataGridRow
rowToResize = RowToResize(sender);
767
internal
DataGridRow
ParentRow
771
return DataGridHelper.FindParent<
DataGridRow
>(this);
779
DataGridRow
parent = ParentRow;