From ba24c4ea0fc14568136b315f8ac5348ec6e4e0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= <840465812@qq.com> Date: Fri, 2 Aug 2019 16:19:14 +0800 Subject: [PATCH] Add MvvmLight Template --- MvvmLightDemo/App.config | 6 + MvvmLightDemo/App.xaml | 13 ++ MvvmLightDemo/App.xaml.cs | 17 +++ MvvmLightDemo/MainWindow.xaml | 30 +++++ MvvmLightDemo/MainWindow.xaml.cs | 28 +++++ MvvmLightDemo/MvvmLightDemo.csproj | 105 ++++++++++++++++ MvvmLightDemo/Properties/AssemblyInfo.cs | 55 ++++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ MvvmLightDemo/Properties/Resources.resx | 117 ++++++++++++++++++ MvvmLightDemo/Properties/Settings.Designer.cs | 30 +++++ MvvmLightDemo/Properties/Settings.settings | 7 ++ MvvmLightDemo/ViewModel/MainViewModel.cs | 31 +++++ MvvmLightDemo/ViewModel/ViewModelLocator.cs | 21 ++++ 13 files changed, 531 insertions(+) create mode 100644 MvvmLightDemo/App.config create mode 100644 MvvmLightDemo/App.xaml create mode 100644 MvvmLightDemo/App.xaml.cs create mode 100644 MvvmLightDemo/MainWindow.xaml create mode 100644 MvvmLightDemo/MainWindow.xaml.cs create mode 100644 MvvmLightDemo/MvvmLightDemo.csproj create mode 100644 MvvmLightDemo/Properties/AssemblyInfo.cs create mode 100644 MvvmLightDemo/Properties/Resources.Designer.cs create mode 100644 MvvmLightDemo/Properties/Resources.resx create mode 100644 MvvmLightDemo/Properties/Settings.Designer.cs create mode 100644 MvvmLightDemo/Properties/Settings.settings create mode 100644 MvvmLightDemo/ViewModel/MainViewModel.cs create mode 100644 MvvmLightDemo/ViewModel/ViewModelLocator.cs diff --git a/MvvmLightDemo/App.config b/MvvmLightDemo/App.config new file mode 100644 index 0000000..d740e88 --- /dev/null +++ b/MvvmLightDemo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MvvmLightDemo/App.xaml b/MvvmLightDemo/App.xaml new file mode 100644 index 0000000..e670c27 --- /dev/null +++ b/MvvmLightDemo/App.xaml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/MvvmLightDemo/App.xaml.cs b/MvvmLightDemo/App.xaml.cs new file mode 100644 index 0000000..2e46708 --- /dev/null +++ b/MvvmLightDemo/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace MvvmLightDemo +{ + /// + /// App.xaml 的交互逻辑 + /// + public partial class App : Application + { + } +} diff --git a/MvvmLightDemo/MainWindow.xaml b/MvvmLightDemo/MainWindow.xaml new file mode 100644 index 0000000..61ad67b --- /dev/null +++ b/MvvmLightDemo/MainWindow.xaml @@ -0,0 +1,30 @@ + + + + + + +