You can doing what you want if you edit the control. Use Blend will help you so much. Right Click => Edit Template.
winrt backspace in Settingsflyout
-
01-07-2023 - |
سؤال
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?
المحلول
نصائح أخرى
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"
لا تنتمي إلى StackOverflow