Click or drag to resize

MapElementExtensionsFindRelativeT Method

Finds an object of type T for a framework element which is somewhere in the visual tree.

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static T FindRelative<T>(
	this FrameworkElement fe
)
where T : DependencyObject

Parameters

fe
Type: System.WindowsFrameworkElement
The framework element.

Type Parameters

T
The type of the object.

Return Value

Type: T
The instance of the object or null if not found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameworkElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also