Interact with MessageDialog using Coded UI on Windows Phone
<p>I'm writing some Coded UI tests for a simple application and cannot seem to get the code to find or interact with a MessageDialog box. Using the Test builder I am able to see the box, and its associated controls, but in the test I am unable to find anything but elements in the app.</p>

<p>I think the issue is that the XamlWindow that is being used for searching is limited to just the app under test, and the popup exists outside this context. I have tried to instantiate a new XamlWindow with the context that the popup exists in, but the code is unable to find any window except the app of the hardware buttons.</p>

<p>I have seen referenced in a few other places that the MessageDialog can be found when using a UIMap, but I am hand coding these tests and am trying to avoid their use when possible. I am not against using a UIMap if there is a way to generate it in code and load up the MessageDialog if that is possible.</p>