Beispiel #1
0
 /// <summary>
 /// This will search for a parent of the specified type.
 /// </summary>
 /// <typeparam name="T">The type of the element to find</typeparam>
 /// <param name="startingObject">The node where the search begins. This element is not checked.</param>
 /// <returns>Returns the found element. Null if nothing is found.</returns>
 public static T FindParent <T>(DependencyObject startingObject) where T : DependencyObject
 {
     return(TreeHelper.FindParent <T>(startingObject, false, null));
 }