[This is preliminary documentation and is subject to change.]

Returns the parent object of the specified object by processing the logical tree.

Namespace: Tools.WindowsT.WPF
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static DependencyObject LogicalParent(
	this DependencyObject obj
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function LogicalParent ( _
	obj As DependencyObject _
) As DependencyObject
Visual C++
[ExtensionAttribute]
public:
static DependencyObject^ LogicalParent(
	DependencyObject^ obj
)
F#
static member LogicalParent : 
        obj:DependencyObject -> DependencyObject 
JScript
public static function LogicalParent(
	obj : DependencyObject
) : DependencyObject

Parameters

obj
Type: System.Windows..::..DependencyObject
The object to find the parent object for. This is expected to be either a FrameworkElement or a FrameworkContentElement.

Return Value

The requested parent object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionobj is null

See Also

Collapse/expand Version History

1.5.3

  • This function is new in version 1.5.3