Returns the row that contains the specified tree element.
Namespace:DevExpress.Xpf.Grid
Assembly:DevExpress.Xpf.Grid.v19.2.Core.dll

Syntax
C# |
public FrameworkElement GetRowElementByTreeElement(
DependencyObject d
)
|
VB |
Public Function GetRowElementByTreeElement(
ByVal d As DependencyObject
) As FrameworkElement
|
Parameters
-
d
-
Type: DependencyObject
The tree element contained within the row.
Return value
Type: FrameworkElement
A System.Windows.FrameworkElement descendant that is the row containing the specified tree element. null (Nothing in Visual Basic), if the row was not found.

Remarks
C# |
private void grid_MouseMove(object sender, System.Windows.Input.MouseEventArgs e) {
FrameworkElement rowElement =
grid.View.GetRowElementByTreeElement(e.OriginalSource as DependencyObject);
double rowHeight;
if(rowElement != null)
rowHeight = ((GridRow)rowElement).ActualHeight;
}
|

See Also