protected override void OnStartup(StartupEventArgs e) { EventManager.RegisterClassHandler(typeof(TextBox), TextBox.KeyDownEvent, new KeyEventHandler(TextBox_KeyDown)); EventManager.RegisterClassHandler(typeof(CheckBox), CheckBox.KeyDownEvent, new KeyEventHandler(CheckBox_KeyDown)); EventManager.RegisterClassHandler(typeof(ComboBox), ComboBox.KeyDownEvent, new KeyEventHandler(ComboBox_KeyDown)); EventManager.RegisterClassHandler(typeof(RadioButton), RadioButton.KeyDownEvent, new KeyEventHandler(RadioButton_KeyDown)); EventManager.RegisterClassHandler(typeof(PasswordBox), PasswordBox.KeyDownEvent, new KeyEventHandler(PasswordBox_KeyDown)); //EventManager.RegisterClassHandler(typeof(TabItem), TabItem.KeyDownEvent, new KeyEventHandler(TabItem_KeyDown)); FrameworkUtil.CarregarConfiguracao(); FrameworkUtil.objGerenciaCupom = new GerenciaCupom(); this.StartupUri = new System.Uri("View/winPrincipal.xaml", System.UriKind.Relative); }