Click or drag to resize

VisualFindParent(PredicateVisual) Method

Go back up through the parents of visuals to find a particular parent that matches the supplied predicate.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public Visual FindParent(
	Predicate<Visual> filter
)

Parameters

filter  PredicateVisual
The predicate to match the parent visuals with.

Return Value

Visual
The first parent that matches the supplied predicate, or null if no ancestor of that matches the predicate.
See Also