/// <summary> /// /// </summary> /// <param name="input">输入的字符</param> /// <param name="backCommand">是否为退格键,如果为退格键,则输入无效</param> public void OnKeypadButtonClick(char input, bool backCommand) { this.Dispatcher.BeginInvoke((Action) delegate { if (this.ClickedCommand != null) { NumericKeypadEventArgs args = new NumericKeypadEventArgs(input, backCommand); this.ClickedCommand(this, args); } }); }
/// <summary> /// /// </summary> /// <param name="input">输入的字符</param> /// <param name="backCommand">是否为退格键,如果为退格键,则输入无效</param> public void OnKeypadButtonClick(char input,bool backCommand) { this.Dispatcher.BeginInvoke((Action)delegate { if (this.ClickedCommand != null) { NumericKeypadEventArgs args = new NumericKeypadEventArgs(input, backCommand); this.ClickedCommand(this, args); } }); }