I acknowledge the pattern for MVVM (Model, View, ViewModel) as having the 'model' (piece of data), view (interface), and viewmodel (logic between data and interface).
With Xamarin forms, there is the Page.Xaml, and Page.Xaml.cs.
If my entire interface is coded in xaml with no GUI written in the code behind file..
Does this mean that the Page.xaml.cs to a xamarin forms page is the ViewModel?
My current structure is as follows..
- Page (GUI)
- Page Code behind (stores a reference to the object we are working with, if any. Also has logic for updating fields based on values in the model etc.)
- The model itself (fields and any methods to manipulate the model)