WinRT MVVM Light Sample Project

2020-06-03 08:36发布

If anyone starts developing Windows 8 metro applications using MVVM Light please help me to create a Windows 8 (WinRT) project template. I get bored by using Microsoft ‘s Layoutaware page(Base class). I just need to structure the class with the help of MVVM Light. If any one did this please help me or provide some links to start developing Windows 8 Metro application using MVVM Light.

The major areas where i am facing issues are:

  1. Navigation (Forward and Backward)
  2. State Handling (Tombstoning in windows 8)
  3. Navigation after the app launches form termination state etc.
  4. Handling WebService [ Post using http client ]

2条回答
太酷不给撩
2楼-- · 2020-06-03 08:55

What about this

But I did not try it. I'm using Portable class library (with targets Windows 8.1 and .NET x.xx) and this library is referenced to WinRT project. MvvmLight for PCL you can find on this link

Problem is, that you can't access Local files and Local settings but you can inject it from Presentation project to Portable class library at the start.

This solution has a lot of advantages and one of the is : easiest unit testing.

For more info look this stack overflow thread

查看更多
ゆ 、 Hurt°
3楼-- · 2020-06-03 09:16

There is an (older) example of using MVVM Light with windows 8 found here. There are also templates and Samples as part of the MVVM Light source found here.

Edit: Here is an msdn example using MVVM Light.

查看更多
登录 后发表回答