'How can I listen to the IAppVisibilityEvents from my class? (Windows 8 Launcher visibility handling through the specific actions subscribing)
Good day everyone!
I found a piece of code at https://gist.github.com/2j2e/5186075
I am not sure how to create an instance that will enable me to catch the IAppVisibilityEvents. This event is raise each time that the Start Menu change from hide to show and vice-versa.
I tried something like:
IAppVisibilityEvents myEvent = new IAppVisibilityEvents(); <-- this does not work because it is an interface. I cannot figure it out alone.
Launcher launch = new Launcher(myEvent);
How can I catch the event?
If(startMenuShown) { Do something... }
Thank you all!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
