Is MVVM dead in Windows 8 Store Apps?

前端 未结 4 749
不思量自难忘°
不思量自难忘° 2021-02-08 06:42

I have started learning about Windows 8 Store Apps.

I recall from Silverlight and WPF programming earlier that people adapted the MVVM concept and now I am not sure if

4条回答
  •  清歌不尽
    2021-02-08 07:13

    No, MVVM will never die!

    Model-View-ViewModel is a design pattern, so it is not dependent on a specific framework or implementation. However, it is a UI design pattern that is most convenient to use with UI frameworks that support data-binding.

    Windows 8 Metro apps include XAML and a binding framework which is much like Silverlight and WPF. For this reason, MVVM is excellent choice for managing your code.

    The code you have discovered in LayoutAwarePage is described in this blog post. It is an attempt to make Windows 8 Metro app development easier by providing various stub-implementations. This page includes a DefaultViewModel, which is an observable dictionary.

    Personally, I wouldn't use it!

提交回复
热议问题