VisualFindParent Method (PredicateVisual) |
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: 15.0.2.11458
Syntaxpublic Visual FindParent(
Predicate<Visual> filter
)
Parameters
- filter
- Type: SystemPredicateVisual
The predicate to match the parent visuals with.
Return Value
Type:
VisualThe first parent that matches the supplied predicate, or null if no ancestor of that matches the predicate.
See Also