Relative Content

Tag Archive for winformsmvvm2-way-object-databinding

Windows Forms databinding to textbox with decimal value

I am trying to apply the MVVM pattern to traditional windows forms design. I have a textbox that hold a decimal value and I want to bind it to view model’s Amount property.
When I enter numbers in the textbox, the Amount property get’s changed without issue. However, when I Remove all the input from the textbox, the Amount property setter is not called and therefore the amount is still the previous value.