Hi all,
I am creating wpf project using MVVM pattern.
Please tell me how can i bind decimal value with TextBox control using mvvm.?
Thankyou
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
R JPosted Aug 14, 2014, 3:11 PM
You can use below approach:
In ViewModel,
In View (xaml):
Or you can use advanced concept, you no need to worry about INotifyPropertychanged where Fody targets will take care at compile and run time.
For more information -
https://github.com/Fody/PropertyChanged