diff --git a/MaterialModernWPF/App.config b/MaterialModernWPF/App.config
index 3fa4d10..0df9a3c 100644
--- a/MaterialModernWPF/App.config
+++ b/MaterialModernWPF/App.config
@@ -13,6 +13,10 @@
+
+
+
+
diff --git a/MaterialModernWPF/App.xaml b/MaterialModernWPF/App.xaml
index 51e6529..8624815 100644
--- a/MaterialModernWPF/App.xaml
+++ b/MaterialModernWPF/App.xaml
@@ -1,8 +1,9 @@
-
+ xmlns:dragablz="http://dragablz.net/winfx/xaml/dragablz"
+ xmlns:prism="http://prismlibrary.com/">
@@ -11,12 +12,11 @@
-
-
-
-
-
+
+
+
+
diff --git a/MaterialModernWPF/App.xaml.cs b/MaterialModernWPF/App.xaml.cs
index d6da62f..154b60d 100644
--- a/MaterialModernWPF/App.xaml.cs
+++ b/MaterialModernWPF/App.xaml.cs
@@ -1,16 +1,39 @@
-using System.Windows;
+using System.Collections.Generic;
+using System.Windows;
+using MaterialModernWPF.Module;
+using MaterialModernWPF.Service;
+using MaterialModernWPF.View;
+using Prism.DryIoc;
+using Prism.Ioc;
+using Prism.Modularity;
namespace MaterialModernWPF
{
///
/// Interaktionslogik für "App.xaml"
///
- public partial class App : Application
+ public partial class App : PrismApplication
{
- protected override void OnStartup(StartupEventArgs e)
+ protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
- base.OnStartup(e);
- new Bootstrapper().Run();
+ containerRegistry.Register();
+ containerRegistry.Register();
+ containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterSingleton();
+ containerRegistry.RegisterForNavigation();
+ }
+
+ protected override Window CreateShell()
+ {
+ return Container.Resolve();
+ }
+
+
+ protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
+ {
+ moduleCatalog.AddModule(typeof(MainModule));
+ base.ConfigureModuleCatalog(moduleCatalog);
}
}
}
\ No newline at end of file
diff --git a/MaterialModernWPF/Bootstrapper.cs b/MaterialModernWPF/Bootstrapper.cs
deleted file mode 100644
index 84189b4..0000000
--- a/MaterialModernWPF/Bootstrapper.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Windows;
-using Autofac;
-using Prism.Autofac;
-
-namespace MaterialModernWPF
-{
- public class Bootstrapper : AutofacBootstrapper
- {
- protected override void ConfigureContainerBuilder(ContainerBuilder builder)
- {
- base.ConfigureContainerBuilder(builder);
- builder.RegisterType();
- }
-
- protected override DependencyObject CreateShell() => Container.Resolve();
-
- protected override void InitializeShell()
- {
- Application.Current.MainWindow = Shell as Window;
- Application.Current.MainWindow?.Show();
- }
- }
-}
\ No newline at end of file
diff --git a/MaterialModernWPF/Constants.cs b/MaterialModernWPF/Constants.cs
new file mode 100644
index 0000000..6d38913
--- /dev/null
+++ b/MaterialModernWPF/Constants.cs
@@ -0,0 +1,8 @@
+namespace MaterialModernWPF
+{
+ public static class Constants
+ {
+ public const string MainRegion = "MainRegion";
+ public const string PackagesRegion = "PackagesRegion";
+ }
+}
\ No newline at end of file
diff --git a/MaterialModernWPF/MaterialModernWPF.csproj b/MaterialModernWPF/MaterialModernWPF.csproj
index 3f9f4ae..a7a9d12 100644
--- a/MaterialModernWPF/MaterialModernWPF.csproj
+++ b/MaterialModernWPF/MaterialModernWPF.csproj
@@ -40,14 +40,11 @@
airballoon.ico
-
- ..\packages\Autofac.4.8.1\lib\net45\Autofac.dll
+
+ ..\packages\CommonServiceLocator.2.0.4\lib\net46\CommonServiceLocator.dll
-
- ..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll
-
-
- ..\packages\Dragablz.0.0.3.203\lib\net45\Dragablz.dll
+
+ ..\packages\DryIoc.dll.2.12.10\lib\net45\DryIoc.dll
..\packages\MaterialDesignColors.1.1.3\lib\net45\MaterialDesignColors.dll
@@ -57,22 +54,22 @@
..\packages\MaterialDesignThemes.2.4.0.1044\lib\net45\MaterialDesignThemes.Wpf.dll
- ..\packages\ModernWpf.Core.2.0.0-alpha94\lib\net40-Client\ModernWpf.Core.dll
- True
+ ..\packages\ModernWpf.Core.2.0.0-beta01\lib\net40-Client\ModernWpf.Core.dll
-
- ..\packages\Prism.Core.7.0.0.396\lib\net45\Prism.dll
+
+ ..\packages\Prism.Core.7.1.0.172-pre\lib\net45\Prism.dll
-
- ..\packages\Prism.Autofac.6.3.0\lib\net45\Prism.Autofac.Wpf.dll
+
+ ..\packages\Prism.DryIoc.7.1.0.172-pre\lib\net45\Prism.DryIoc.Wpf.dll
-
- ..\packages\Prism.Wpf.6.3.0\lib\net45\Prism.Wpf.dll
+
+ ..\packages\Prism.Wpf.7.1.0.172-pre\lib\net45\Prism.Wpf.dll
+
-
- ..\packages\Prism.Wpf.6.3.0\lib\net45\System.Windows.Interactivity.dll
+
+ ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll
@@ -96,16 +93,30 @@
App.xaml
Code
-
+
+
+
+ MainView.xaml
+
+
+
+
+
+
+
+
+ DetailedGeometryView.xaml
+
+
InfoDialog.xaml
-
+
Shell.xaml
Code
+
-
Code
@@ -137,15 +148,24 @@
-
+
Designer
MSBuild:Compile
-
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
+
MSBuild:Compile
Designer
+