【问题标题】:Detect Settings Charm is Opened or Not in Windows Store Apps?检测 Windows 应用商店应用程序中是否打开了设置 Charm?
【发布时间】:2013-06-03 13:07:58
【问题描述】:

我只想知道是否有任何其他方式来获取设置魅力。 因为,在我的应用中,应用的设置在设置魅力中(如果用户在应用中按下设置 btn 将导致打开设置魅力)

在我的情况下,而不是使用设置 btn。用户可以使用快捷方式(WIN + C)(或)将鼠标移动到屏幕的右上角。进入设置窗格意味着我怎么知道?

有没有办法找到那个????

【问题讨论】:

  • 您的实际问题是什么?发生这种情况时要暂停游戏吗?只需检查激活丢失。这将涵盖 Charms、Settings、Switch 和其他用户暂时停止使用您的应用的情况。或者您想检测用户何时请求您的应用显示其设置?使用设置合同。

标签: windows-8 windows-runtime microsoft-metro windows-store-apps appsettings


【解决方案1】:

SettingsPane 上点击CommandsRequested

Occurs when the user opens the settings pane. Listening for this event lets the app 
initialize the setting commands and pause its UI until the user closes the pane.

现在检测到它再次关闭相当于检查您的窗口是否再次激活 - see this thread

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多