Home > Enterprise >  Xamarin.Forms pages, views and viewmodels
Xamarin.Forms pages, views and viewmodels

Time:12-05

I’m quite new to mobile development.
What is the difference between page and view?
From what I understand a page is a container of views, which in turn, if the MVVM pattern is implemented can have an associated ViewModel. In this scenario, the page does not have an associated ViewModel.
Is it right?
Thanks

CodePudding user response:

Page is used when creating different screens (pages), such as LoginPage. View is a UI interface that can be embedded in a page. In MVVM, the view is notified when the properties of the view model change. Both page and view can be data bound.

For more information about MVVM, you can refer to: The Model-View-ViewModel Pattern | Microsoft

  • Related