问题
Where can I find a tutorial for creating a custom InputScope? I'd like to create a custom keyboard that displays only the numbers 1-9 on the onscreen keybord (no symbols).
回答1:
You cannot create custom input scope, here are the ones supported InputScopeNameValue Enumeration there may be one close to what you want - there are ones with numbers e.g. telephone or number.
回答2:
You can't create a custom input scope, but you can process key events, see http://www.atleyhunter.com/2010/11/12/making-textbox-numbers-only-for-windows-phone-7/ for how to handle numeric data entry.
来源:https://stackoverflow.com/questions/3875711/creating-a-custom-inputscope-for-windows-phone-7