diff --git a/MvvmAppCore/Models/MotorProfile.cs b/MvvmAppCore/Models/MotorProfile.cs
new file mode 100644
index 0000000..a156531
--- /dev/null
+++ b/MvvmAppCore/Models/MotorProfile.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MvvmAppCore.Models
+{
+ internal class MotorProfile
+ {
+ }
+}
diff --git a/MvvmAppCore/ViewModels/MotorProfileViewModel.cs b/MvvmAppCore/ViewModels/MotorProfileViewModel.cs
new file mode 100644
index 0000000..b16ab69
--- /dev/null
+++ b/MvvmAppCore/ViewModels/MotorProfileViewModel.cs
@@ -0,0 +1,15 @@
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace MvvmAppCore.ViewModels
+{
+ public partial class MotorProfileViewModel : ObservableObject
+ {
+ [ObservableProperty]
+ private string _motorName;
+
+ public MotorProfileViewModel()
+ {
+ MotorName = "Elevator";
+ }
+ }
+}
diff --git a/MvvmAppUi/MvvmAppUi.csproj b/MvvmAppUi/MvvmAppUi.csproj
new file mode 100644
index 0000000..51c7aeb
--- /dev/null
+++ b/MvvmAppUi/MvvmAppUi.csproj
@@ -0,0 +1,17 @@
+
+
+
+ net6.0-windows
+ enable
+ true
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MvvmAppUi/Views/MotorProfileView.xaml b/MvvmAppUi/Views/MotorProfileView.xaml
new file mode 100644
index 0000000..c78c51d
--- /dev/null
+++ b/MvvmAppUi/Views/MotorProfileView.xaml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MvvmAppUi/Views/MotorProfileView.xaml.cs b/MvvmAppUi/Views/MotorProfileView.xaml.cs
new file mode 100644
index 0000000..1923867
--- /dev/null
+++ b/MvvmAppUi/Views/MotorProfileView.xaml.cs
@@ -0,0 +1,19 @@
+using CommunityToolkit.Mvvm.DependencyInjection;
+using MvvmAppCore.ViewModels;
+using System.Windows.Controls;
+
+namespace MvvmAppUi.Views
+{
+ ///
+ /// Interaction logic for MotorProfileView.xaml
+ ///
+ public partial class MotorProfileView : UserControl
+ {
+ public MotorProfileView()
+ {
+ InitializeComponent();
+
+ DataContext = Ioc.Default.GetRequiredService();
+ }
+ }
+}
diff --git a/MvvmCommunityApp.sln b/MvvmCommunityApp.sln
index 3fb52fa..577461d 100644
--- a/MvvmCommunityApp.sln
+++ b/MvvmCommunityApp.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmCommunityApp", "MvvmCom
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmAppCore", "MvvmAppCore\MvvmAppCore.csproj", "{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmAppUi", "MvvmAppUi\MvvmAppUi.csproj", "{E0548A3E-F7A4-4BEE-A5DC-A62AACA38C12}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8CFB1DAE-0565-4A86-B0CC-2D7E3C9ED053}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E0548A3E-F7A4-4BEE-A5DC-A62AACA38C12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E0548A3E-F7A4-4BEE-A5DC-A62AACA38C12}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E0548A3E-F7A4-4BEE-A5DC-A62AACA38C12}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E0548A3E-F7A4-4BEE-A5DC-A62AACA38C12}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/MvvmCommunityApp/App.xaml.cs b/MvvmCommunityApp/App.xaml.cs
index 25fdcdf..801796c 100644
--- a/MvvmCommunityApp/App.xaml.cs
+++ b/MvvmCommunityApp/App.xaml.cs
@@ -29,6 +29,7 @@ namespace MvvmCommunityApp
.AddTransient()
.AddSingleton()
.AddSingleton()
+ .AddSingleton()
.BuildServiceProvider());
protected override void OnStartup(StartupEventArgs e)
diff --git a/MvvmCommunityApp/MainWindow.xaml b/MvvmCommunityApp/MainWindow.xaml
index c58d23f..af8bf3c 100644
--- a/MvvmCommunityApp/MainWindow.xaml
+++ b/MvvmCommunityApp/MainWindow.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MvvmCommunityApp"
+ xmlns:vm="clr-namespace:MvvmAppUi.Views;assembly=MvvmAppUi"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
@@ -14,6 +15,7 @@
+
diff --git a/MvvmCommunityApp/MvvmCommunityApp.csproj b/MvvmCommunityApp/MvvmCommunityApp.csproj
index 2b799d2..de3d36f 100644
--- a/MvvmCommunityApp/MvvmCommunityApp.csproj
+++ b/MvvmCommunityApp/MvvmCommunityApp.csproj
@@ -18,6 +18,7 @@
+