diff --git a/MVVMwithWPF/MVVMwithWPF.sln b/MVVMwithWPF/MVVMwithWPF.sln
new file mode 100644
index 0000000..41fea5f
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.9.34728.123
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MVVMwithWPF", "MVVMwithWPF\MVVMwithWPF.csproj", "{1B007594-A562-441E-B578-35010828A703}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {1B007594-A562-441E-B578-35010828A703}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1B007594-A562-441E-B578-35010828A703}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1B007594-A562-441E-B578-35010828A703}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1B007594-A562-441E-B578-35010828A703}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {E072CF8D-B4E4-4A51-8552-A3B1FE29A801}
+ EndGlobalSection
+EndGlobal
diff --git a/MVVMwithWPF/MVVMwithWPF/App.xaml b/MVVMwithWPF/MVVMwithWPF/App.xaml
new file mode 100644
index 0000000..023a98b
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/App.xaml
@@ -0,0 +1,7 @@
+
+
+
diff --git a/MVVMwithWPF/MVVMwithWPF/App.xaml.cs b/MVVMwithWPF/MVVMwithWPF/App.xaml.cs
new file mode 100644
index 0000000..1d4ae4c
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/App.xaml.cs
@@ -0,0 +1,34 @@
+using Microsoft.Extensions.DependencyInjection;
+using MVVMwithWPF.ViewModels;
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace MVVMwithWPF
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ public new static App Current => (App)Application.Current;
+
+ public IServiceProvider Service { get; }
+
+ public App()
+ {
+ Service = ConfigureServices();
+ this.InitializeComponent();
+ }
+
+ private static IServiceProvider ConfigureServices()
+ {
+ var services = new ServiceCollection();
+
+ services.AddTransient(typeof(MainViewModel));
+
+ return services.BuildServiceProvider();
+ }
+ }
+
+}
diff --git a/MVVMwithWPF/MVVMwithWPF/AssemblyInfo.cs b/MVVMwithWPF/MVVMwithWPF/AssemblyInfo.cs
new file mode 100644
index 0000000..b0ec827
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/MVVMwithWPF/MVVMwithWPF/MVVMwithWPF.csproj b/MVVMwithWPF/MVVMwithWPF/MVVMwithWPF.csproj
new file mode 100644
index 0000000..8af5f75
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/MVVMwithWPF.csproj
@@ -0,0 +1,17 @@
+
+
+
+ WinExe
+ net8.0-windows
+ enable
+ enable
+ true
+
+
+
+
+
+
+
+
+
diff --git a/MVVMwithWPF/MVVMwithWPF/ViewModels/MainViewModel.cs b/MVVMwithWPF/MVVMwithWPF/ViewModels/MainViewModel.cs
new file mode 100644
index 0000000..822a452
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/ViewModels/MainViewModel.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MVVMwithWPF.ViewModels
+{
+ internal class MainViewModel : ViewModelBase
+ {
+ public MainViewModel()
+ {
+ Title = "Main View";
+ }
+ }
+}
diff --git a/MVVMwithWPF/MVVMwithWPF/ViewModels/ViewModelBase.cs b/MVVMwithWPF/MVVMwithWPF/ViewModels/ViewModelBase.cs
new file mode 100644
index 0000000..31de03f
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/ViewModels/ViewModelBase.cs
@@ -0,0 +1,19 @@
+using CommunityToolkit.Mvvm.ComponentModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MVVMwithWPF.ViewModels
+{
+ internal abstract class ViewModelBase : ObservableObject
+ {
+ private string _title;
+ public string Title
+ {
+ get => _title;
+ set => SetProperty(ref _title, value);
+ }
+ }
+}
diff --git a/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml b/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml
new file mode 100644
index 0000000..b18363f
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml
@@ -0,0 +1,25 @@
+
+
+
+
+
diff --git a/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml.cs b/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml.cs
new file mode 100644
index 0000000..7f06858
--- /dev/null
+++ b/MVVMwithWPF/MVVMwithWPF/Views/MainWindow.xaml.cs
@@ -0,0 +1,26 @@
+using MVVMwithWPF.ViewModels;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace MVVMwithWPF
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ DataContext = App.Current.Service.GetService(typeof(MainViewModel));
+ }
+ }
+}
\ No newline at end of file