I am trying to get the AutomationProperties.ItemStatus using the Telerik Test framework and it does not seem to exist anywhere. Is the only way around it to do the following? Surely there is a way directly from Telerik framework?
Get the handle from the Telerik framework and then use the System.Windows.Automation framework as follows...
var wpfHandle = customTelerikFrameworkElement.wpfWindow.Window.Handle
System.Windows.Automation.AutomationElement.FromHandle(this.wpfWindow.Window.Handle);
var root = System.Windows.AutomationAutomationElement.RootElement;
var image = root.FindFirst(TreeScope.Descendants, new System.Windows.Automation.PropertyCondition(System.Windows.Automation.AutomationElement.AutomationIdProperty, indicatorImage.AutomationId));
var props = image.GetSupportedProperties();
var prop = props.FirstOrDefault(p => p.ProgrammaticName == "AutomationElementIdentifiers.ItemStatusProperty");
var statusPropertyValue = image.GetCurrentPropertyValue(prop);