diff --git a/ILSpy.ReadyToRun/ReadyToRunOptionPage.xaml.cs b/ILSpy.ReadyToRun/ReadyToRunOptionPage.xaml.cs index fbe046ea4a..5a9e10884a 100644 --- a/ILSpy.ReadyToRun/ReadyToRunOptionPage.xaml.cs +++ b/ILSpy.ReadyToRun/ReadyToRunOptionPage.xaml.cs @@ -26,7 +26,7 @@ namespace ICSharpCode.ILSpy.ReadyToRun { - [ExportOptionPage(Title = nameof(global::ILSpy.ReadyToRun.Properties.Resources.ReadyToRun), Order = 40)] + [ExportOptionPage(Order = 40)] [PartCreationPolicy(CreationPolicy.NonShared)] partial class ReadyToRunOptionPage : UserControl, IOptionPage { @@ -35,6 +35,8 @@ public ReadyToRunOptionPage() InitializeComponent(); } + public string Title => global::ILSpy.ReadyToRun.Properties.Resources.ReadyToRun; + public void Load(ILSpySettings settings) { Options s = new Options(); diff --git a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs index 892c8ea4f6..d2f67fd5e8 100644 --- a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs +++ b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs @@ -26,7 +26,7 @@ namespace ICSharpCode.ILSpy.Options /// /// Interaction logic for DecompilerSettingsPanel.xaml /// - [ExportOptionPage(Title = nameof(Properties.Resources.Decompiler), Order = 10)] + [ExportOptionPage(Order = 10)] [PartCreationPolicy(CreationPolicy.NonShared)] internal partial class DecompilerSettingsPanel : IOptionPage { @@ -35,6 +35,8 @@ public DecompilerSettingsPanel() InitializeComponent(); } + public string Title => Properties.Resources.Decompiler; + public static Decompiler.DecompilerSettings LoadDecompilerSettings(ILSpySettings settings) { return ISettingsProvider.LoadDecompilerSettings(settings); diff --git a/ILSpy/Options/DisplaySettingsPanel.xaml.cs b/ILSpy/Options/DisplaySettingsPanel.xaml.cs index 95b56b4eeb..e7e38eea5f 100644 --- a/ILSpy/Options/DisplaySettingsPanel.xaml.cs +++ b/ILSpy/Options/DisplaySettingsPanel.xaml.cs @@ -34,7 +34,7 @@ namespace ICSharpCode.ILSpy.Options /// /// Interaction logic for DisplaySettingsPanel.xaml /// - [ExportOptionPage(Title = nameof(Properties.Resources.Display), Order = 20)] + [ExportOptionPage(Order = 20)] [PartCreationPolicy(CreationPolicy.NonShared)] public partial class DisplaySettingsPanel : UserControl, IOptionPage { @@ -67,6 +67,8 @@ public DisplaySettingsPanel() ); } + public string Title => Properties.Resources.Display; + public void Load(ILSpySettings settings) { this.DataContext = LoadDisplaySettings(settings); diff --git a/ILSpy/Options/MiscSettingsPanel.xaml.cs b/ILSpy/Options/MiscSettingsPanel.xaml.cs index 8fc6ea04f2..349b8851d9 100644 --- a/ILSpy/Options/MiscSettingsPanel.xaml.cs +++ b/ILSpy/Options/MiscSettingsPanel.xaml.cs @@ -27,7 +27,7 @@ namespace ICSharpCode.ILSpy.Options /// /// Interaction logic for MiscSettingsPanel.xaml /// - [ExportOptionPage(Title = nameof(Properties.Resources.Misc), Order = 30)] + [ExportOptionPage(Order = 30)] [PartCreationPolicy(CreationPolicy.NonShared)] public partial class MiscSettingsPanel : UserControl, IOptionPage { @@ -36,6 +36,8 @@ public MiscSettingsPanel() InitializeComponent(); } + public string Title => Properties.Resources.Misc; + public void Load(ILSpySettings settings) { this.DataContext = new MiscSettingsViewModel(SettingsService.Instance.MiscSettings); diff --git a/ILSpy/Options/OptionsDialog.xaml b/ILSpy/Options/OptionsDialog.xaml index 7dd6d38dfc..ce61021952 100644 --- a/ILSpy/Options/OptionsDialog.xaml +++ b/ILSpy/Options/OptionsDialog.xaml @@ -1,35 +1,43 @@  - - - - - - + + +