开发者

How can I obtain an AutomationElement reference to an application running in the Windows Phone 7 Emulator?

开发者 https://www.devze.com 2023-03-06 03:30 出处:网络
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 o

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

0

精彩评论

暂无评论...
验证码 换一张
取 消