Viraj Shah
Viraj Shah

Reputation: 308

Windows Phone 8 input keyboard

I have form of adding members in phone application page, in that form, one field is ZIP CODE, so how do I get keyboard of numbers on text changed event? thanks!!

Upvotes: 0

Views: 274

Answers (2)

A.K.
A.K.

Reputation: 3331

The answer given above in a single line could be

<TextBox Name="txtZipCode" InputScope="Number"/>

Upvotes: 2

LakshmiNarayanan
LakshmiNarayanan

Reputation: 1178

Check with this InputScope, Refer this

 <TextBox Name="txtZipCode" >
        <TextBox.InputScope>
            <InputScope>
                <InputScopeName NameValue="Number" />
            </InputScope>
        </TextBox.InputScope>
    </TextBox>

Upvotes: 5

Related Questions