启动弹出窗口时的事件(Windows 8 Metro 应用程序) [英] Event when flyout is launched (Windows 8 metro app)
问题描述
我有一个问题,我的弹出窗口(在设置魅力中)隐藏在我的应用程序中的广告后面.现在我想通过在选择 fylout 时隐藏广告来解决这个问题.
i have the problem, that my flyout (in the settings charme) is hidden behind an ad in my application. Now i want to solve this issue by hiding the Ad, when the fylout is selected.
但是我怎么能在我的页面代码中注意到,弹出窗口被选中了?
But how can i notice in my page code, that the flyout is selected?
非常感谢
推荐答案
最好的方法是为 onbeforeshow
事件创建一个事件侦听器(请参阅此处的文档:http://msdn.microsoft.com/en-us/library/windows/apps/br211723.aspx.)您为侦听器设置的功能可以隐藏广告.
The best way to do it would be to create an event listener for the onbeforeshow
event (see documentation here: http://msdn.microsoft.com/en-us/library/windows/apps/br211723.aspx.) The function you set for the listener can hide the ad.
查看 WinJS.UI.Flyout 对象本身的官方文档,了解您可以订阅的更多事件:http://msdn.microsoft.com/en-us/library/windows/apps/br211726.aspx
Take a look at the official documentation for the WinJS.UI.Flyout object itself for more events to which you can subscribe: http://msdn.microsoft.com/en-us/library/windows/apps/br211726.aspx
这篇关于启动弹出窗口时的事件(Windows 8 Metro 应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!