| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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
- {
- /// <summary>
- /// QuickOrderBar.xaml 的交互逻辑
- /// </summary>
- 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;
- }
- }
- }
- }
|