I create simple SettingsFlyout panel following this example of microsoft http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh872190.aspx

Everything is fine, but how can I make backspace go back to settings panel?

有帮助吗?

解决方案

You can doing what you want if you edit the control. Use Blend will help you so much. Right Click => Edit Template.

其他提示

This work for me:

In code behind

  private void settingsAbout_KeyDown(object sender, KeyRoutedEventArgs e)
    {
        if (e.Key == VirtualKey.Back)
        {
            SettingsPane.Show();
        }
    }

in xaml

KeyDown="settingsAbout_KeyDown"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top