Click here to Skip to main content
15,867,568 members
Articles / General
Tip/Trick

Windows Phone 7: Silverlight, using multiple Software Input Panels in your applications

Rate me:
Please Sign up or sign in to vote.
4.92/5 (5 votes)
15 Oct 2010CPOL 39.7K   1  
Change the Sip used to enter text on any textbox based on the use you need of that textbox.
Windows Phone 7 has 10 different input panels to choose from:

Default (Standard QWERTY Keyboard)
Text (Standard text with sugestions and autocorrection)
Url (URL Address)
EmailSmtpAddress (Email Address)
EmailNameOrAddress (Email name or address)
Maps (Map Localization search)
TelephoneNumer (Telephone number)
Search (Search Query)
NameOrPhoneNumber (SMS Contact search)
Chat (Text input with intelligent features like text abreviation)

The use is very simple, on your textbox XAML definition specify the SIP you want to use:

XML
<TextBox Text="http://jyeray.blogspot.com">
    <TextBox.InputScope>
        <InputScope>
            <InputScopeName NameValue="Url" />
        </InputScope>
    </TextBox.InputScope>
</TextBox>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Freelance Developer
Spain Spain
MVP Windows Platform Development 2014
MVP Windows Phone Development 2013
MVP Windows Phone Development 2012

Comments and Discussions

 
-- There are no messages in this forum --