VisualTree.FindAscendantByName(DependencyObject, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.