using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Muchinfo.MTPClient.Trade.Views { /// /// QuickOrderBar.xaml 的交互逻辑 /// public partial class QuickOrderBar : UserControl { public QuickOrderBar() { InitializeComponent(); } private void DecimalUpDown_KeyDown(object sender, KeyEventArgs e) { if ((e.Key >= Key.NumPad0 && e.Key <= Key.NumPad9) || (e.Key >= Key.D0 && e.Key <= Key.D9)) { e.Handled = false; } else { e.Handled = true; } } } }