TreeHelper.

TryFindFromPoint<T>(UIElement, Point) Method

Summary

Tries to locate a given item within the visual tree, starting with the dependency object at a given position.
Namespace
MahApps.Metro.Controls
Containing Type
TreeHelper

Syntax

public static T TryFindFromPoint<T>(UIElement reference, Point point) where T : DependencyObject

Type Parameters

Name Description
T The type of the element to be found on the visual tree of the element at the given location.

Parameters

Name Type Description
reference UIElement The main element which is used to perform hit testing.
point Point The position to be evaluated on the origin.

Return Value

Type Description
T