WPF Edit Mask
问题 What is the easiest way to specify an edit mask in WPF for a simple Text Box? e.g. one that transforms 10000 to 10,000 as you type. 回答1: Short answer, there is no easy way. If you use masks quite often, I would recommend creating your own control with masking functionality. Using the MaskedTextProvider class should be fairly straightforward. See the following for an example of a custom TextBox with masking capabilities: Masked TextBox example... 回答2: Easiest and most straightforward way is