I'm trying to save prices for products from a textbox. I know I have to convert or parse the input into decimal datatype. Now I have two question about this:
Hope my questions are clear!
It sounds like you need a style for your TextBoxes. Here's a basic style that should provide you with enough information to research the terms included so you can alter it to act how you want. You may need to bind a Path.
<Style x:Key="MoneyStyle" TargetType="{x:Type TextBox}">
<Setter Property="Text" Value="{Binding StringFormat='###,###.##'"/>
</Style>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.