title: How to make textbox accept only currency format input?
body: <p><a href="https://i.stack.imgur.com/0xGRm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0xGRm.png" alt="enter image description here"></a></p>
  
  <p>This is a screenshot of the program. As you see I made the output format how I wanted it to be. I used this code:
   <code>&lt;DataGridTextColumn Header="Price" Binding="{Binding Path=Price, StringFormat=C, ConverterCulture='de-DE'}"/&gt;</code></p>
  
  <p>How to make the textbox accept as input only numbers as currency format, or how to make it autoformat it while typing? I tried few codes that I found here and there but it didn't work. Hope someone can help me and give me some detailed information too. The data must be saved in SQL Server database, and till now I used LINQ.</p>