Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top