示例#1
0
 public static DependencyObject GetParent(DependencyObject element)
 {
     return(TreeHelper.GetParent(element, true));
 }
示例#2
0
 public static bool IsDescendantOf(DependencyObject element, DependencyObject parent)
 {
     return(TreeHelper.IsDescendantOf(element, parent, true));
 }
示例#3
0
 public static T FindParent <T>(DependencyObject startingObject, bool checkStartingObject) where T : DependencyObject
 {
     return(TreeHelper.FindParent <T>(startingObject, checkStartingObject, null));
 }
示例#4
0
 public static T FindChild <T>(DependencyObject parent) where T : DependencyObject
 {
     return(TreeHelper.FindChild <T>(parent, null));
 }