I am creating a numeric TextBox in WPF, with two buttons to increase and decrease the value.
I have create two RoutedCommand to manage the behiavor and they are working well. There is only one problem that I would like to solve. I would like that the control notifies all object binded to its TextProperty when an increase or decrease command is executed.
At the moment it sends the notification only when I change the focus to another control
Any help is really appreciated, Thank you
There is a simple way:
Text="{Binding Path=MyProperty, UpdateSourceTrigger=PropertyChanged}"
(I tested it on TextBox). Good Luck
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With