MapElementExtensionsFindParentT Method |
Finds an object of type T for a framework element which is a parent 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 FindParent<T>(
FrameworkElement fe
)
where T : DependencyObject
Public Shared Function FindParent(Of T As DependencyObject) (
fe As FrameworkElement
) As T
public:
generic<typename T>
where T : DependencyObject
static T FindParent(
FrameworkElement^ fe
)
static member FindParent :
fe : FrameworkElement -> 'T when '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.
See Also