Exemplo n.º 1
0
 public virtual List <T> FindAll <T>()
 {
     return(ControlDictionary.Instance
            .GetControlType(typeof(T), automationElement.Current.FrameworkId)
            .SelectMany(ct => current
                        .GetAll(SearchCriteria.ByControlType(ct))
                        .OfType <T>())
            .ToList());
 }