Пример #1
0
 public static Visual FindDescendantByType(Visual element, Type type)
 {
     return(VisualTreeHelperEx.FindDescendantByType(element, type, true));
 }
Пример #2
0
        public static T FindDescendantByType <T>(Visual element) where T : Visual
        {
            Visual temp = VisualTreeHelperEx.FindDescendantByType(element, typeof(T));

            return(( T )temp);
        }