using Windows.System; using Windows.UI.Xaml.Input; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 namespace ModernKeePass.Views.SettingsPageFrames { /// /// An empty page that can be used on its own or navigated to within a Frame. /// public sealed partial class SettingsHistoryPage { public SettingsHistoryPage() { InitializeComponent(); } private void UIElement_OnKeyDown(object sender, KeyRoutedEventArgs e) { if ((e.Key < VirtualKey.NumberPad0 || e.Key > VirtualKey.NumberPad9) & (e.Key < VirtualKey.Number0 || e.Key > VirtualKey.Number9)) { e.Handled = true; } } } }