VisualTree.FindAscendantByName(DependencyObject, String) Method

Definition

Find visual ascendant Windows.UI.Xaml.FrameworkElement control using its name.

public static Windows.UI.Xaml.FrameworkElement FindAscendantByName (this Windows.UI.Xaml.DependencyObject element, string name);
static member FindAscendantByName : Windows.UI.Xaml.DependencyObject * string -> Windows.UI.Xaml.FrameworkElement
<Extension()>
Public Function FindAscendantByName (element As DependencyObject, name As String) As FrameworkElement

Parameters

element
Windows.UI.Xaml.DependencyObject

Parent element.

name
String

Name of the control to find

Returns

Windows.UI.Xaml.FrameworkElement

Descendant control or null if not found.

Applies to