diff --git a/ILSpy/App.xaml b/ILSpy/App.xaml
index ce2e14086..aac1e7181 100644
--- a/ILSpy/App.xaml
+++ b/ILSpy/App.xaml
@@ -3,7 +3,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:styles="urn:TomsToolbox.Wpf.Styles"
xmlns:toms="urn:TomsToolbox"
- xmlns:themes="clr-namespace:ICSharpCode.ILSpy.Themes">
+ xmlns:themes="clr-namespace:ICSharpCode.ILSpy.Themes"
+ xmlns:composition="urn:TomsToolbox.Composition"
+ xmlns:util="clr-namespace:ICSharpCode.ILSpy.Util">
diff --git a/ILSpy/App.xaml.cs b/ILSpy/App.xaml.cs
index c82af3125..432499935 100644
--- a/ILSpy/App.xaml.cs
+++ b/ILSpy/App.xaml.cs
@@ -69,6 +69,8 @@ namespace ICSharpCode.ILSpy
var cmdArgs = Environment.GetCommandLineArgs().Skip(1);
CommandLineArguments = CommandLineArguments.Create(cmdArgs);
+ // This is only a temporary, read only handle to the settings service to access the AllowMultipleInstances setting before DI is initialized.
+ // At runtime, you must use the service via DI!
var settingsService = new SettingsService();
bool forceSingleInstance = (CommandLineArguments.SingleInstance ?? true)
diff --git a/ILSpy/Controls/ZoomScrollViewer.xaml b/ILSpy/Controls/ZoomScrollViewer.xaml
index 509b8d636..648e1fb42 100644
--- a/ILSpy/Controls/ZoomScrollViewer.xaml
+++ b/ILSpy/Controls/ZoomScrollViewer.xaml
@@ -1,10 +1,18 @@
+ xmlns:toms="urn:TomsToolbox"
+ xmlns:composition="urn:TomsToolbox.Composition"
+ xmlns:util="clr-namespace:ICSharpCode.ILSpy.Util">