简体   繁体   中英

Xamarin.Forms pages, views and viewmodels

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM