VisualFindVisualAndDescendantsAspectsT Method |
Find all aspects of type T on this visual or one of its descendents (children recursively)
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic IEnumerable<T> FindVisualAndDescendantsAspects<T>()
where T : class
Type Parameters
- T
- The aspect type to look for.
Return Value
IEnumerableTA collection of aspects of type T in the visual tree at this point and below.
Exampleint CountRenderablesVisualAndDescendants(Visual visual) {
return visual.FindVisualAndDescendantsAspects<PhysicsGeometryAspect>().Count();
}
See Also