I am using a WPF TextBox editor to display a decimal value with 2 decimal places.
If i go into the TextBox, and put in the value 27.5, the textbox shows 27.50.
My current mask = "{}{double:5.2}". Is there any way to hide the decimal places if there is no value there? like 52 instead of 52.00?