ArcFM Solution Developer Guide
FirstOrDefault<T> Method


The source.
if set to true [force using the visual tree helper].
First or default.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function FirstOrDefault(Of T As System.Windows.DependencyObject)( _
   ByVal source As System.Windows.DependencyObject, _
   Optional ByVal forceUsingTheVisualTreeHelper As System.Boolean _
) As T
'Usage
 
Dim source As System.Windows.DependencyObject
Dim forceUsingTheVisualTreeHelper As System.Boolean
Dim value As T
 
value = TreeHelper.FirstOrDefault(Of T)(source, forceUsingTheVisualTreeHelper)
[System.Runtime.CompilerServices.Extension()]
public static T FirstOrDefault<T>( 
   System.Windows.DependencyObject source,
   System.bool forceUsingTheVisualTreeHelper
)
where T: System.Windows.DependencyObject

Parameters

source
The source.
forceUsingTheVisualTreeHelper
if set to true [force using the visual tree helper].

Type Parameters

T
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