1 instantiation of DataGridRow
PresentationFramework (1)
src\Framework\System\Windows\Controls\DataGrid.cs (1)
815
return new
DataGridRow
();
257 references to DataGridRow
PresentationFramework (230)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
372
internal void RaiseAutomationRowInvokeEvents(
DataGridRow
row)
383
internal void RaiseAutomationCellInvokeEvents(DataGridColumn column,
DataGridRow
row)
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
422
DataGridRow
row = GetWrapper() as
DataGridRow
;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (3)
21
public DataGridRowAutomationPeer(
DataGridRow
owner)
125
private
DataGridRow
OwningDataGridRow
129
return (
DataGridRow
)Owner;
src\Framework\System\Windows\Controls\DataGrid.cs (74)
620
DataGridRow
row = container as
DataGridRow
;
637
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
806
return item is
DataGridRow
;
827
DataGridRow
row = (
DataGridRow
)element;
838
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
857
DataGridRow
row = (
DataGridRow
)element;
861
row.ClearValue(
DataGridRow
.IsNewItemPropertyKey);
876
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
1154
var
row = e.Row;
1164
var
row = (
DataGridRow
)arg;
1185
var
row = e.Row;
1305
_itemAttachedStorage.SetValue(item,
DataGridRow
.DetailsVisibilityProperty, detailsVisibility);
1307
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1322
if (_itemAttachedStorage.TryGetValue(item,
DataGridRow
.DetailsVisibilityProperty, out detailsVisibility))
1327
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1351
_itemAttachedStorage.ClearValue(item,
DataGridRow
.DetailsVisibilityProperty);
1353
var
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
1356
row.ClearValue(
DataGridRow
.DetailsVisibilityProperty);
1641
DataGridRow
row = _rowTrackingRoot.Container;
1662
DataGridRow
row = ContainerFromItemInfo(info) as
DataGridRow
;
1667
row = ContainerFromItemInfo(info) as
DataGridRow
;
1817
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromIndex(info.Index);
1919
DataGridRow
row = _rowTrackingRoot.Container;
1936
DataGridRow
row = _rowTrackingRoot.Container;
3088
internal bool IsCurrent(
DataGridRow
row, DataGridColumn column=null)
3816
DataGridRow
newItemPlaceholderRow = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder);
3968
internal void OnLoadingRowDetailsWrapper(
DataGridRow
row)
3981
internal void OnUnloadingRowDetailsWrapper(
DataGridRow
row)
4025
var
row = e.Row;
4092
ContainerTracking<
DataGridRow
> tracker = _rowTrackingRoot;
4095
DataGridRow
row = tracker.Container;
4611
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4629
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
4632
DataGridRow
row = rowTracker.Container;
4765
internal void HandleSelectionForRowHeaderAndDetailsInput(
DataGridRow
row, bool startDragging)
5895
DataGridRow
focusRow = DataGridHelper.FindVisualParent<
DataGridRow
>(focusContainer);
6191
DataGridRow
startingRow = startingElement as
DataGridRow
;
6194
startingRow = DataGridHelper.FindVisualParent<
DataGridRow
>(startingElement);
6209
DataGridRow
targetRowElement = targetElement as
DataGridRow
;
6212
targetRowElement = DataGridHelper.FindVisualParent<
DataGridRow
>(targetElement);
6278
DataGridRow
row = MouseOverRow;
6292
DataGridRow
row = MouseOverRow;
6316
DataGridRow
row = GetRowNearMouse();
6405
DataGridRow
parentRow = rowHeader.ParentRow;
6420
private
DataGridRow
GetRowNearMouse()
6433
DataGridRow
row = null;
6438
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6442
row = itemsHost.Children[i] as
DataGridRow
;
6482
DataGridRow
row = null;
6487
row = ItemContainerGenerator.ContainerFromIndex(i) as
DataGridRow
;
6491
row = itemsHost.Children[i] as
DataGridRow
;
6559
private static bool CalculateCellDistance(FrameworkElement cell,
DataGridRow
rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6613
private
DataGridRow
MouseOverRow
6618
DataGridRow
row = null;
6622
row = DataGridHelper.FindVisualParent<
DataGridRow
>(element);
7044
DataGridRow
row = (
DataGridRow
)info.Container;
7057
DataGridRow
row = (
DataGridRow
)ItemContainerGenerator.ContainerFromItem(item);
8574
ContainerTracking<
DataGridRow
> rowTracker = _rowTrackingRoot;
8670
private ContainerTracking<
DataGridRow
> _rowTrackingRoot; // Root of a linked list of active row containers
src\Framework\System\Windows\Controls\DataGridBeginningEditEventArgs.cs (3)
24
public DataGridBeginningEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs)
51
public
DataGridRow
Row
66
private
DataGridRow
_dataGridRow;
src\Framework\System\Windows\Controls\DataGridCell.cs (8)
79
internal void PrepareCell(object item, ItemsControl cellsPresenter,
DataGridRow
ownerRow)
90
internal void PrepareCell(object item,
DataGridRow
ownerRow, int index)
138
internal void ClearCell(
DataGridRow
ownerRow)
382
var
row = RowOwner;
500
var
row = RowOwner;
1063
internal
DataGridRow
RowOwner
1072
DataGridRow
row = RowOwner;
1102
private
DataGridRow
_owner;
src\Framework\System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
25
public DataGridCellEditEndingEventArgs(DataGridColumn column,
DataGridRow
row, FrameworkElement editingElement, DataGridEditAction editAction)
53
public
DataGridRow
Row
76
private
DataGridRow
_dataGridRow;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
1860
DataGridRow
row = presenter.DataGridRowOwner;
2419
DataGridRow
row = presenter.DataGridRowOwner;
src\Framework\System\Windows\Controls\DataGridColumn.cs (3)
626
DataGridRow
row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as
DataGridRow
;
641
public FrameworkElement GetCellContent(
DataGridRow
dataGridRow)
src\Framework\System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
26
public DataGridPreparingCellForEditEventArgs(DataGridColumn column,
DataGridRow
row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement)
45
public
DataGridRow
Row
67
private
DataGridRow
_dataGridRow;
src\Framework\System\Windows\Controls\DataGridRow.cs (64)
102
VisibilityProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnCoerceVisibility));
103
DefaultStyleKeyProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(typeof(
DataGridRow
)));
104
ItemsPanelProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel)))));
105
FocusableProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
106
BackgroundProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
107
BindingGroupProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(OnNotifyRowPropertyChanged));
110
SnapsToDevicePixelsProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange));
111
IsMouseOverPropertyKey.OverrideMetadata(typeof(
DataGridRow
), new UIPropertyMetadata(new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
112
VirtualizingPanel.ShouldCacheContainerSizeProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerceShouldCacheContainerSize)));
113
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
DataGridRow
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
121
_tracker = new ContainerTracking<
DataGridRow
>(this);
142
DependencyProperty.Register("Item", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
177
public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(
DataGridRow
));
282
DependencyProperty.Register("Header", typeof(object), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
306
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
321
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
336
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
351
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
370
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
385
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(
DataGridRow
), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
400
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(
DataGridRow
), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
528
internal ContainerTracking<
DataGridRow
> Tracker
617
var
row = (
DataGridRow
)d;
628
var
row = (
DataGridRow
)d;
639
var
row = (
DataGridRow
)d;
650
var
row = (
DataGridRow
)d;
680
var
row = (
DataGridRow
)d;
691
var
row = (
DataGridRow
)d;
702
var
row = (
DataGridRow
)d;
713
var
row = (
DataGridRow
)d;
751
var
row = (
DataGridRow
)d;
768
var
row = (
DataGridRow
)d;
785
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows);
790
(d as
DataGridRow
).NotifyPropertyChanged(d, e, DataGridNotificationTarget.Rows | DataGridNotificationTarget.RowHeaders);
795
DataGridRow
row = (
DataGridRow
)d;
817
var
row = (
DataGridRow
)d;
829
var
row = (
DataGridRow
)arg;
931
else if (e.Property ==
DataGridRow
.IsEditingProperty ||
932
e.Property ==
DataGridRow
.IsMouseOverProperty ||
1053
public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(
DataGridRow
));
1078
typeof(
DataGridRow
),
1083
DataGridRow
row = (
DataGridRow
)sender;
1137
public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(
DataGridRow
));
1167
public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(
DataGridRow
));
1227
DependencyProperty.RegisterReadOnly("IsEditing", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false, OnNotifyRowAndRowHeaderPropertyChanged));
1296
DependencyProperty.RegisterReadOnly("IsNewItem", typeof(bool), typeof(
DataGridRow
), new FrameworkPropertyMetadata(false));
1335
public static
DataGridRow
GetRowContainingElement(FrameworkElement element)
1337
return DataGridHelper.FindVisualParent<
DataGridRow
>(element);
1382
private ContainerTracking<
DataGridRow
> _tracker;
src\Framework\System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
14
public DataGridRowDetailsEventArgs(
DataGridRow
row, FrameworkElement detailsElement)
25
public
DataGridRow
Row
src\Framework\System\Windows\Controls\DataGridrowEditEndingEventArgs.cs (3)
23
public DataGridRowEditEndingEventArgs(
DataGridRow
row, DataGridEditAction editAction)
41
public
DataGridRow
Row
55
private
DataGridRow
_dataGridRow;
src\Framework\System\Windows\Controls\DataGridRowEventArgs.cs (2)
14
public DataGridRowEventArgs(
DataGridRow
row)
19
public
DataGridRow
Row
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (9)
84
DataGridRow
owningRow = DataGridRowOwner;
161
DataGridRow
row = DataGridRowOwner;
312
DataGridRow
rowOwner = DataGridRowOwner;
330
DataGridRow
rowOwner = DataGridRowOwner;
472
var
row = DataGridRowOwner;
606
DataGridRow
parent = DataGridRowOwner;
619
internal
DataGridRow
DataGridRowOwner
621
get { return DataGridHelper.FindParent<
DataGridRow
>(this); }
628
DataGridRow
owningRow = DataGridRowOwner;
src\Framework\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); }
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (32)
217
DataGridRow
parent = ParentRow;
265
if (e.Property ==
DataGridRow
.HeaderProperty || e.Property == ContentProperty)
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)
285
else if (e.Property ==
DataGridRow
.IsSelectedProperty)
309
e.Property ==
DataGridRow
.IsEditingProperty ||
310
e.Property ==
DataGridRow
.IsMouseOverProperty ||
332
DataGridRow
.HeaderProperty);
341
var
row = header.ParentRow;
348
DataGridRow
.HeaderTemplateProperty,
359
var
row = header.ParentRow;
366
DataGridRow
.HeaderTemplateSelectorProperty,
382
DataGridRow
.HeaderStyleProperty,
409
var
row = ParentRow;
427
var
row = ParentRow;
441
var
row = ParentRow;
455
var
row = ParentRow;
543
DataGridRow
parent = header.ParentRow;
567
DataGridRow
parentRow = ParentRow;
652
DataGridRow
parent = ParentRow;
685
private
DataGridRow
PreviousRow
689
DataGridRow
row = ParentRow;
698
return (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
711
private
DataGridRow
RowToResize(object gripper)
719
DataGridRow
rowToResize = RowToResize(sender);
729
DataGridRow
rowToResize = RowToResize(sender);
740
DataGridRow
rowToResize = RowToResize(sender);
750
DataGridRow
rowToResize = RowToResize(sender);
768
internal
DataGridRow
ParentRow
772
return DataGridHelper.FindParent<
DataGridRow
>(this);
780
DataGridRow
parent = ParentRow;
System.Activities.Core.Presentation (6)
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (4)
182
DataGridRow
row = (
DataGridRow
)sender;
524
DataGridRow
row = entry.Row;
796
internal
DataGridRow
Row
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (2)
120
DataGridRow
row = (
DataGridRow
)sender;
System.Activities.Presentation (21)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (20)
591
var
row = VisualTreeUtils.FindVisualAncestor<
DataGridRow
>(cell);
604
var
row = VisualTreeUtils.FindVisualAncestor<
DataGridRow
>(cell);
695
DataGridRow
row = VisualTreeUtils.FindVisualAncestor<
DataGridRow
>(cell);
713
DataGridRow
row = VisualTreeUtils.FindVisualAncestor<
DataGridRow
>(cell);
850
Style style = null == baseStyle ? new Style(typeof(
DataGridRow
)) : new Style(typeof(
DataGridRow
), baseStyle);
854
Event =
DataGridRow
.KeyDownEvent,
879
errorTooltipTrigger.Setters.Add(new Setter(
DataGridRow
.TagProperty, null));
993
DataGridRow
rowContainer = GetRow(dataGrid, row);
1041
public static
DataGridRow
GetRow(DataGrid dataGrid, int index)
1043
DataGridRow
row = (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index);
1050
row = (
DataGridRow
)dataGrid.ItemContainerGenerator.ContainerFromIndex(index);
1513
var
row = values.OfType<
DataGridRow
>().FirstOrDefault();
1529
row.Dispatcher.BeginInvoke(new Action<ToolTip,
DataGridRow
>((tip, r) =>
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
433
DataGridRow
row = DataGridHelper.GetRow(this.variableDataGrid, index);