Open new Window from ViewModel in WPF MVVM

Rav! Srivastava. CodeProject. 2016-10-02.
Implementing Factory design pattern to open new Window from ViewModel in WPF MVVM.
I got several question posted on web “How to open new window from view model in MVVM pattern” and I have also encountered the same problem  at beginner level  after googling and learning design pattern got the solution of this problem  and  decided to write an article with deep discussion. In this article we are going to implement the Factory Design Pattern. It will provide a flexible and loosely coupled environment.

[Open new Window from ViewModel in WPF MVVM]


knockout: MVVM with JavaScript.

Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying data model. Any time you have sections of UI that update dynamically (e.g., changing depending on the user’s actions or when an external data source changes), KO can help you implement it more simply and maintainably.

Headline features:
•Elegant dependency tracking – automatically updates the right parts of your UI whenever your data model changes.
•Declarative bindings – a simple and obvious way to connect parts of your UI to your data model. You can construct a complex dynamic UIs easily using arbitrarily nested binding contexts.
•Trivially extensible – implement custom behaviors as new declarative bindings for easy reuse in just a few lines of code.

Additional benefits:
•Pure JavaScript library – works with any server or client-side technology
•Can be added on top of your existing web application without requiring major architectural changes
•Compact – around 13kb after gzipping
•Works on any mainstream browser (IE 6+, Firefox 2+, Chrome, Safari, Edge, others)
•Comprehensive suite of specifications (developed BDD-style) means its correct functioning can easily be verified on new browsers and platforms

Developers familiar with Ruby on Rails, ASP.NET MVC, or other MV* technologies may see MVVM as a real-time form of MVC with declarative syntax. In another sense, you can think of KO as a general way to make UIs for editing JSON data… whatever works for you 🙂

[knockout: MVVM with JavaScript.]

4 Reasons To Drop MVVM

Dave M Bush (Dave Bush’s Blog), 2016-07-26
The MVVM design pattern has been around for quite a while now.  It has a lot of strengths when done correctly. But, I believe the time has come to recognize that MVVM has a lot of shortcomings that point to its demise.  Since I primarily develop web applications, I will keep this discussion centered on the use of MVVM in web applications.  The use of MVVM for desktop may or may not have these same issues.

[4 Reasons To Drop MVVM]

MVVM for beginners

Super Lloyd. CodeProject
Introduction to MVVM for absolute beginners
This article is here to help people go from absolute beginner to normal beginner with MVVM.
This article assume minimal familiarity with XAML and a UI library using XAML such as WPF. Just that you can read it is good enough. Why? Because before XAML MVVM was not possible (without lots of extra work) as summarily explained below.
The code sample is using some C# 6 functionality (null conditiona a?.b, auto property initializer) and some .NET 4.5 one (CallerMemberAttribute) hence one will need at least VS2015 to compile it. But hey, it’s free!