QuickOrderBar.xaml.cs 973 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. namespace Muchinfo.MTPClient.Trade.Views
  15. {
  16. /// <summary>
  17. /// QuickOrderBar.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class QuickOrderBar : UserControl
  20. {
  21. public QuickOrderBar()
  22. {
  23. InitializeComponent();
  24. }
  25. private void DecimalUpDown_KeyDown(object sender, KeyEventArgs e)
  26. {
  27. if ((e.Key >= Key.NumPad0 && e.Key <= Key.NumPad9) || (e.Key >= Key.D0 && e.Key <= Key.D9))
  28. {
  29. e.Handled = false;
  30. }
  31. else
  32. {
  33. e.Handled = true;
  34. }
  35. }
  36. }
  37. }