一、简介
什么是ViewModel?自己百度下MVVM吧。
什么是ViewModelLocator?意思是ViewModel系统、或ViewModel定位,说白了,就是介绍ViewModel。
工程目录:
你可以参考https://www.cnblogs.com/bjxingch/articles/9562542.html
二、举例
1、App.xaml、App.xaml.cs、Bootstrapper.cs、MainWindow.xaml.cs采用默认值。
2、MainWindow.xaml:
<Window x:Class="ViewModelLocator.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x=