| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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.Account.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;
- }
- }
- }
- }
|