Good examples of MVVM Template

2019-01-15 23:50发布

I am currently working with the Microsoft MVVM template and find the lack of detailed examples frustrating. The included ContactBook example shows very little Command handling and the only other example I've found is from an MSDN Magazine article where the concepts are similar but uses a slightly different approach and still lack in any complexity. Are there any decent MVVM examples that at least show basic CRUD operations and dialog/content switching?


Everyone's suggestions were really useful and I will start compiling a list of good resources

Frameworks/Templates

Useful Articles

Screencasts

Additional Libraries

标签: wpf mvvm
9条回答
手持菜刀,她持情操
2楼-- · 2019-01-15 23:59
叼着烟拽天下
3楼-- · 2019-01-16 00:01

The sample project in the Cinch framework shows basic CRUD and navigation tools. It's a fairly good example of using MVVM, and includes a multi-part article explaining its usage and motivations.

查看更多
我想做一个坏孩纸
4楼-- · 2019-01-16 00:04

Here I am adding link of a WPF(Inventory Management App) application which using MVVM architecture designed by me .

Its UI is awesome. https://github.com/shivam01990/InventoryManagement

查看更多
迷人小祖宗
5楼-- · 2019-01-16 00:05

Have you looked at Caliburn? The ContactManager sample has a lot of good stuff in it. The generic WPF samples also provide a good overview of commands. The documentation is fairly good and the forums are active. Recommended!

查看更多
再贱就再见
6楼-- · 2019-01-16 00:10

I also shared in your frustration. I'm writing an application and I had these 3 requirements:

  • Extensible
  • WPF with MVVM
  • GPL compatible examples

All I found were bits and pieces, so I just started writing it the best I could. After I got into it a bit, I realized there might be other people (like yourself) who could use a reference application, so I refactored the generic stuff out into a WPF/MVVM application framework and released it under the LGPL. I named it SoapBox Core. If you go to the downloads page, you'll see it comes with a small demo application, and the source code for that demo application is also available for download. Hope you find that helpful. Also, email me at scott {at} soapboxautomation.com if you want more info.

EDIT: Also posted a CodeProject article explaining how it works.

查看更多
Juvenile、少年°
7楼-- · 2019-01-16 00:13

I have written a simple MVVM example from scratch on code project here is the link MVVM WPF step by step. It starts from a simple 3 layer architecture and graduates you to use some framework like PRISM.

enter image description here

查看更多
登录 后发表回答