سؤال

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