VisualFindParent(PredicateVisual) Method |
Go back up through the parents of visuals to find a particular parent that matches the supplied predicate.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic Visual FindParent(
Predicate<Visual> filter
)
Parameters
- filter PredicateVisual
- The predicate to match the parent visuals with.
Return Value
VisualThe first parent that matches the supplied predicate, or null if no ancestor of that matches the predicate.
See Also