Beispiel #1
0
 /// <summary>
 /// Sets focus on a child element once the parent is loaded.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="element"></param>
 public static void FocusOnLoad(this FrameworkElement parent, IInputElement element)
 {
     parent.Loaded += delegate
     {
         element.SetFocus();
     };
 }