How to use AutomationProperties.Name?
Date : March 29 2020, 07:55 AM
I hope this helps . You can change the attached property AutomationProperties.Name either in XAML using:
|
What is the difference between AutomationProperties.AutomationID and AutomationProperties.Name?
Tag : chash , By : Zinovate
Date : March 29 2020, 07:55 AM
this will help AutomationProperties.Name is a descriptive name for the control that can be evaluated by automation clients it doesn't have to be unique. AutomationProperties.AutomationId is the ID for the control that uniquely identifies it across the whole UI.
|
Difference AutomationProperties.AutomationId AutomationProperties.Name
Date : March 29 2020, 07:55 AM
around this issue Here are some differences I found: It seems like Inspect.exe (former UISpy.exe) can only read .AutomationId, but not .AutomationName this two links about name and automationId might be useful as well. biggest difference from the two links: "If AutomationProperties.AutomationId is not specifically set, it returns the AutomationProperties.Name property value." this is not specified for the name property. If neither AutomationProperties.AutomationId nor AutomationProperties.Name are set, and in xaml the Name (not x:Name, that one doesn't work!!) is set, then the AutomationProperties.AutomationId is set to the same value as the Name Property is (be aware that I mean two differnt things with the Name (standard XAML Property) and AutomationProperties.Name!!) <TextBlock x:Name="msgStatus"
Text="idle"
... />
|
AutomationProperties.Name VS x:Name
Date : March 29 2020, 07:55 AM
|
Windows 8 Metro :: What is AutomationProperties.AutomationId and AutomationProperties.Name
Date : March 29 2020, 07:55 AM
|