Windows Phone's Silverlight support includes support for the System.Windows.Automation
classes, but there doesn't appear to be any way to get an AutomationElement
reference to the application from outside the emulator (from a .NET 4 test client, similar to the way you would access a Silverlight application).
I have tried:
- Using
AutomationElement.FromHandle
on开发者_运维知识库 the XDE window, but that only gives me automation elements for the window itself (no doubt because the emulator is a VM) - Snooping around in Microsoft.Smartdevice.Connectivity, but there doesn't seem to be anything useful there
Any thoughts?
Automation is not supported in the initial release ... https://stackoverflow.com/questions/4137528/ui-automation-for-wp7
精彩评论