Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 Windows Phone 中开发应用程序。我需要TextBox的KeyDown事件中的要求是,我需要知道“#”或“。” 在文本框中按下键。谁能帮我摆脱这个问题?
private void TextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.xxxx || e.PlatformKeyCode == xxxx) //xxxx is the keycode for your desired keys { //do work here } }
我认为它应该工作