using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using Muchinfo.WPF.Controls; //---------------------------------------------------------------- //Module Name: $safeprojectname$ //Purpose: //CopyRight: Muchinfo //History: //---------------------------------------------------------------- //DateTime 2017/3/1 16:44:12 //Author //Description Create //---------------------------------------------------------------- using System.Windows.Controls; namespace Muchinfo.MTPClient.Trade.Utilities { public class FocusComboBox : ComboBox { protected override void OnKeyDown(System.Windows.Input.KeyEventArgs e) { ///处理不改变选择 } } public class FocusDecimalNumBox : DecimalNumBox { protected override void OnPreviewKeyDown(KeyEventArgs e) { base.OnPreviewKeyDown(e); if (e.Key == Key.Up || e.Key == Key.Down) { e.Handled = true; } } } }