Back to Devexpress

LayoutTreeHelper.GetVisualParents(DependencyObject, DependencyObject) Method

wpf-devexpress-dot-mvvm-dot-ui-dot-layouttreehelper-dot-getvisualparents-x28-system-dot-windows-dot-dependencyobject-system-dot-windows-dot-dependencyobject-x29.md

latest2.0 KB
Original Source

LayoutTreeHelper.GetVisualParents(DependencyObject, DependencyObject) Method

Returns a LINQ-compatible collection which contains visual parents.

Namespace : DevExpress.Mvvm.UI

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static IEnumerable<DependencyObject> GetVisualParents(
    DependencyObject child,
    DependencyObject stopNode = null
)
vb
Public Shared Function GetVisualParents(
    child As DependencyObject,
    stopNode As DependencyObject = Nothing
) As IEnumerable(Of DependencyObject)

Parameters

NameTypeDescription
childDependencyObject

A visual or logical child for which to obtain a collection of visual parents.

|

Optional Parameters

NameTypeDefaultDescription
stopNodeDependencyObjectnull

A visual parent that is the stop node.

|

Returns

TypeDescription
IEnumerable<DependencyObject>

A LINQ-compatible collection which contains visual parents.

|

See Also

LayoutTreeHelper Class

LayoutTreeHelper Members

DevExpress.Mvvm.UI Namespace