System.Windows.Automation.AutomationElement.GetPropertyValue C# (CSharp) Method

GetPropertyValue() private method

private GetPropertyValue ( AutomationProperty property, bool cached ) : object
property AutomationProperty
cached bool
return object
        internal object GetPropertyValue(AutomationProperty property, bool cached)
        {
            if (cached)
            {
                return GetCachedPropertyValue(property);
            }
            else
            {
                return GetCurrentPropertyValue(property);
            }
        }

Usage Example

Example #1
0
 public static bool IsWPF(this AutomationElement el)
 {
     return(el.GetPropertyValue(AutomationElement.FrameworkIdProperty) as string == "WPF");
 }