Is it possible to remove the currency formatting on a WPF textbox on focus? The app follows MVVM.
<TextBox HorizontalAlignment="Left"
Height="23"
Margin="156,264,0,0"
TextWrapping="Wrap"
HorizontalContentAlignment="Right"
Text="{Binding Amount, StringFormat=c, ValidatesOnNotifyDataErrors=True}"
VerticalAlignment="Top"
Width="100" />
I need the formatting while the textbox is not having focus. But it needs to be removed only when it having focus to enable easy editing by the user. The reason for removing the $ is that when you tab, the focus is before the $. This means the user has to click again or use the arrow key to move to the digits.
When the user tabs to the above textbox the currency symbol should be removed. Thanks for your help.