Exemplo n.º 1
0
 /// <summary>
 /// Returns the DependencyObject's child System.Windows.FrameworkElement by examining the visual tree.
 /// </summary>
 /// <param name="dependencyObject">The DependencyObject instance that this extension method affects.</param>
 /// <param name="name">The identifying name of the child FrameworkElement.</param>
 /// <returns>The child FrameworkElement, or <c>null</c> if it does not exist.</returns>
 public static FrameworkElement Child(this DependencyObject dependencyObject, string name)
 {
     return(dependencyObject.Child <FrameworkElement>(name));
 }