From 8eadd907c9bcb92e89f23d31d2b8f4fab8dc21e4 Mon Sep 17 00:00:00 2001 From: tom-englert Date: Thu, 20 Feb 2025 16:19:26 +0100 Subject: [PATCH] Fix #3393: Option to turn off smooth scrolling --- ILSpy/App.xaml | 12 ++++++++++-- ILSpy/App.xaml.cs | 2 ++ ILSpy/Controls/ZoomScrollViewer.xaml | 12 ++++++++++-- ILSpy/Options/DisplaySettings.cs | 8 ++++++++ ILSpy/Options/DisplaySettingsPanel.xaml | 1 + ILSpy/Properties/Resources.Designer.cs | 9 +++++++++ ILSpy/Properties/Resources.resx | 3 +++ 7 files changed, 43 insertions(+), 4 deletions(-) diff --git a/ILSpy/App.xaml b/ILSpy/App.xaml index ce2e14086c..aac1e7181b 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 c82af3125e..432499935c 100644 --- a/ILSpy/App.xaml.cs +++ b/ILSpy/App.xaml.cs @@ -69,6 +69,8 @@ public App() 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 509b8d6367..648e1fb421 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">