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 8711019
In Process

The Archive Base Latest Questions

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

i dont know how to make my textbox from string to currency. I already

  • 0

i dont know how to make my textbox from string to currency. I already do search on STO, google. but don’t understand how to use it.

let’s say i have one textbox.
whenever it run the program, i key in inside the textbox.
if i key in 1000, i want my textbox automatically change to 1,000.
if i key in 10000, my textbox will looks like 10,000.
but whenever i key in 100, my textbox will still 100.

here is my textbox xaml.

<TextBox Height="25" HorizontalAlignment="Left" Margin="126,223,0,0" Name="txtPrice" 
                     VerticalAlignment="Top" Width="140" PreviewTextInput="txtPrice_PreviewTextInput" />

I ever done this before using vb.net, but now i’m using wpf. still new to wpf.
any idea how to that? thanks.

  • 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-13T04:46:29+00:00Added an answer on June 13, 2026 at 4:46 am

    Use the StringFormat dependency property to format the way you want the string to be shown on UI. Try this –

    <TextBox Text="{Binding YourBinding, StringFormat='##,#', 
                              UpdateSourceTrigger=PropertyChanged}"/>
    

    For more formats refer to this link from msdn – Custom Numeric Format

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know what's make wrong, my map can load, but the image on
I don't know alot about ASP.Net but I'm trying to make a new control
I want to make a conversation view with ListBox, but I don't know how
I would like to make my active tab unclickable, but i don't know how
I know how to make the list of the Fibonacci numbers, but i don't
I don't know how make my application as auto start application.That is my expectation
I don't really know anything about make or makefile scripts, so I'm hoping someone
How to make an onhover popup box effect like on facebook, i don't know
I’m trying to make an RSS subscribers counter using PHP and don’t know where
i don't really know what ruby,gems, or ror is, my objective is make this

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.