There is no difference for the "CodedUI test builder" between the AutomationProperties.Name and x:Name. But the first one can override the second one. Also the AtomationProperties.Name supports data binding, x:Name of course doesn't.

As we know if you are using the MVVM pattern it is best to only use x:Name when needed.

So should AutomationProperties.Name be preferred to x:Name?

Edit
Report