Releases: jfversluis/DncMvvm
Using FreshMvvm as a MVVM framework
In this final step I have installed the FreshMvvm framework to take using MVVM to the next level.
I have implemented some simple navigation and showing you how you can supply values from one PageModel to another.
Implemented a ValueConverter
For this step I have implemented a IValueConverter which sets the color of the label depending on a string value.
Data binding to another control
With this increment I will show you how you can do more with the binding syntax in XAML. We will not bind to a PageModel, instead we let the value of a control manipulate a property of another control.
This shows you the power there is in data binding.
Implementing the INotifyPropertyChanged interface
In this step I have implemented the INotifyPropertyChanged interface into my PageModel.
With adding this to the PageModel, the UI now gets updated accordingly when a value is modified.
Implementing a Command
In this release I have added a button to my layout. Through data binding I bind to the KnockCommand.
The Command is implemented in my PageModel and updates the text of our LabelText. While we would expect it to update the UI as well, it does not quite yet.
Simple data binding example
I have created a PageModel which I bind in my Page. I then refer to the LabelText property from XAML, showing the basics of data binding.