public static SingleFindInTree ( Visual parent, IFinderMatchVisualHelper helper ) : |
||
parent | Visual | Start point in the tree to search |
helper | IFinderMatchVisualHelper | Match Helper to use |
return |
public static FrameworkElement SingleFindInTree(Visual parent, IFinderMatchVisualHelper helper)
{
helper.StopAfterFirst = true;
List<FrameworkElement> lst = FindInTree(parent, helper);
FrameworkElement feRet = null;
if (lst.Count > 0) feRet = lst[0];
return feRet;
}