what I was looking for. the Textbox control in Silverlight supports a property called InputScopeNameValue. This allows one to determine the keyboard layout of the SIP (software input panel). One just sets the property to the desired setting to control input on the textbox.
<TextBox Text="HelloWorld">
<TextBox.InputScope>
<InputScope>
<InputScopeName NameValue="Url" />
</InputScope>
</TextBox.InputScope>
</TextBox>
SIP layout | XAML or enumeration value | SIP description |
---|---|---|
Default | Default, and other standard input scope values | Standard QWERTY layout |
Text | Text | Standard layout with features such as autocorrect and text suggestion |
Web | Url | Standard layout with .com and customized Enter key for typing URLs. |
E-mail address | EmailSmtpAddress | Standard layout with .com and @ key. |
E-mail name or address | EmailNameOrAddress | Standard layout with .com and @ key, and easy access to phone number layout. |
Maps | Maps | Standard layout with a customized Enter key. Used to type a location to search for on a map |
Phone number | TelephoneNumber | 12-key layout |
Search | Search | Semi-transparent layout with a Search and .com key. |
SMS contact | NameOrPhoneNumber | Standard layout with access to phone number layout. Used to type in the SMS To field |
Chat | Chat | Text input that uses intelligent features such as abbreviations |
Source:http://msdn.microsoft.com/en-us/library/ff426929(v=vs.95).aspx
No comments:
Post a Comment