ArcFM Solution Developer Guide
GetParentObject Method


The item to be processed.
This method is an alternative to WPF's System.Windows.Media.VisualTreeHelper.GetParent(System.Windows.DependencyObject) method, which also supports content elements. Keep in mind that for content element, this method falls back to the logical tree of the element!
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function GetParentObject( _
   ByVal child As System.Windows.DependencyObject _
) As System.Windows.DependencyObject
'Usage
 
Dim child As System.Windows.DependencyObject
Dim value As System.Windows.DependencyObject
 
value = TreeHelper.GetParentObject(child)
[System.Runtime.CompilerServices.Extension()]
public static System.Windows.DependencyObject GetParentObject( 
   System.Windows.DependencyObject child
)

Parameters

child
The item to be processed.

Return Value

The submitted item's parent, if available. Otherwise null.
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