locked
Is there an API for Metro app indicate that current screen is Start Screen?

    Question

  • Two questions:

    1. Is there an API for Metro app indicate that current screen is Start Screen, i.e. no metro app is now running on the foreground?

    2. Is there an API for Metro app indicate that our metro app is now running on the foreground?

    Monday, July 9, 2012 2:22 AM

Answers

  • 1) No, there is no such API available to Metro style apps. Metro style apps know only about themselves. They can't interact with the rest of the system in that way.

    2) It depends on what you mean by foreground: In one sense, you can assume that if your app is running it is on screen and the user visible, although this won't tell if the user is using a different app on a different monitor or in a different snapped/filled state. You can track the CoreWindow::Activated event to know if your window active and will receive keyboard events or not.

    --Rob

    • Marked as answer by steve xue Tuesday, July 10, 2012 2:41 AM
    Monday, July 9, 2012 5:34 PM
    Owner