internal object GetPropertyValue(AutomationProperty property, bool cached) { if (cached) { return GetCachedPropertyValue(property); } else { return GetCurrentPropertyValue(property); } }
public static bool IsWPF(this AutomationElement el) { return(el.GetPropertyValue(AutomationElement.FrameworkIdProperty) as string == "WPF"); }