Windows 8.1 如何以编程方式关闭 SettingsFlyout
Windows 8.1 how to dismiss a SettingsFlyout programmatically
我有一个 Windows 8.1 应用程序。
因为我在 ShowIndependent 模式下有一个 SettingsFlyout。
在设置弹出窗口中,我有一个列表
我希望 SettingsFlyout 在单击列表中的任何项目时关闭。
如果有人能指出正确的实施方向,我将非常高兴。提前致谢。
只需调用 SettingsFlyout.Hide()
:
By default, the settings flyout is dismissed when the user presses the
back button, and is always light-dismissed when the user taps outside
of it. In most cases, you will not need to call the Hide method to
dismiss the settings flyout.
Calling the Hide method has the same behavior as light dismiss. It
always returns the user to your app and closes the settings pane,
regardless of whether the settings flyout was opened by calling Show
or ShowIndependent.
我有一个 Windows 8.1 应用程序。
因为我在 ShowIndependent 模式下有一个 SettingsFlyout。 在设置弹出窗口中,我有一个列表 我希望 SettingsFlyout 在单击列表中的任何项目时关闭。
如果有人能指出正确的实施方向,我将非常高兴。提前致谢。
只需调用 SettingsFlyout.Hide()
:
By default, the settings flyout is dismissed when the user presses the back button, and is always light-dismissed when the user taps outside of it. In most cases, you will not need to call the Hide method to dismiss the settings flyout.
Calling the Hide method has the same behavior as light dismiss. It always returns the user to your app and closes the settings pane, regardless of whether the settings flyout was opened by calling Show or ShowIndependent.