Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8754031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:32:27+00:00 2026-06-13T13:32:27+00:00

I am developing a windows phone app and am new in wp7 development. I

  • 0

I am developing a windows phone app and am new in wp7 development. I am using a text box to enter amount of a product. Only digits are allowed to enter in to that field. So my need is to display digits (0 to 9) in the keypad. How can I do this ?.. Please help.

I tried the following code

<TextBox Name="textBox1" Width="200" Height="100" Text="0.00" TextAlignment="Right">
            <TextBox.InputScope>
                <InputScope>
                    <InputScopeName NameValue="CurrencyAmount"  />
                </InputScope>
            </TextBox.InputScope>
        </TextBox>

But still it showing the keyboard below.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:32:28+00:00Added an answer on June 13, 2026 at 1:32 pm
            <TextBox.InputScope>
                <InputScope>
                    <InputScopeName NameValue="Number"  />
                </InputScope>
            </TextBox.InputScope>
    

    you just need 0~9

    so += the keydown event of textblock

    and use these code

            switch (e.Key)
            {
                case Key.D0:
                case Key.D1:
                case Key.D2:
                case Key.D3:
                case Key.D4:
                case Key.D5:
                case Key.D6:
                case Key.D7:
                case Key.D8:
                case Key.D9:
                case Key.Back:
                case Key.Delete:
                    break;
                default:
                    e.Handled = true;
                    return;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a windows phone application. I'm new in WP7 app development. In my
I'm developing a Windows Phone 7 (WP7) app and I'm using a LongListSelector control
I'm new to Windows phone 7 application development. I'm currently developing an app in
I am developing an Hybrid Mobile app using Windows Phone 7 sdk and phonegap.
I am new in windows phone development. Now I am developing a windows phone
I am new to windows phone. I am developing a web-app and the test
I am developing a windows phone 7 app. I am using many controls in
I am completely new in windows phone app development. I want to know what
I am developing an app using Windows Phone 7. I have used MVVM for
I'm developing an app for WP7 (VS2010 Express for Windows Phone RTM and WP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.