ArcFM Solution Developer Guide
FindChildren<T> Method


The type of the queried items.
The root element that marks the source of the search. If the source is already of the requested type, it will not be included in the result.
Sometimes it's better to search in the VisualTree (e.g. in tests)
Analyzes both visual and logical tree in order to find all elements of a given type that are descendants of the source item.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.IteratorStateMachineAttribute(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__3`1)>
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function FindChildren(Of T As System.Windows.DependencyObject)( _
   ByVal source As System.Windows.DependencyObject, _
   Optional ByVal forceUsingTheVisualTreeHelper As System.Boolean _
) As System.Collections.Generic.IEnumerable(Of T)
'Usage
 
Dim source As System.Windows.DependencyObject
Dim forceUsingTheVisualTreeHelper As System.Boolean
Dim value As System.Collections.Generic.IEnumerable(Of T)
 
value = TreeHelper.FindChildren(Of T)(source, forceUsingTheVisualTreeHelper)
[System.Runtime.CompilerServices.IteratorStateMachine(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__3`1)]
[System.Runtime.CompilerServices.Extension()]
public static System.Collections.Generic.IEnumerable<T> FindChildren<T>( 
   System.Windows.DependencyObject source,
   System.bool forceUsingTheVisualTreeHelper
)
where T: System.Windows.DependencyObject

Parameters

source
The root element that marks the source of the search. If the source is already of the requested type, it will not be included in the result.
forceUsingTheVisualTreeHelper
Sometimes it's better to search in the VisualTree (e.g. in tests)

Type Parameters

T
The type of the queried items.

Return Value

All descendants of source that match the requested type.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TreeHelper Class
TreeHelper Members

 

 


Send Comment