I am new to windows 8 phone. I am writing a calculator app that can only accept numbers in the textbox and just a single decimal point. how do I prevent users from inputting two or more decimal Points in the text box as the calculator cant handle that.
I have been using Keydown Event, is that the best or should I use Key up?
private void textbox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) {
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…