79270004

Date: 2024-12-10 22:43:51
Score: 0.5
Natty:
Report link

I had to specify the UpdateSourceTrigger property. The Text property defaults to LostFocus, so when I changed to it PropertyChanged, it works as expected.

<TextBox x:Name="MultistageCountValue" 
  Text="{Binding MultistageCount, UpdateSourceTrigger=PropertyChanged}"
  PreviewTextInput="NumericTextBox_PreviewTextInput"
  TextChanged="MultistageCountValue_TextChanged"/>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kenbuja