From 157d5fe9c2dd5230855ea0df724aaba40896f88b Mon Sep 17 00:00:00 2001 From: tom-englert Date: Mon, 22 Mar 2021 12:55:31 +0100 Subject: [PATCH] Introduce basic MVVM pattern to avoid interferences of content and control style --- ILSpy/Options/DisplaySettingsPanel.xaml | 41 +++++++++++++------------ ILSpy/Options/OptionsDialog.xaml | 16 ++++++++-- ILSpy/Options/OptionsDialog.xaml.cs | 21 ++++++++++--- 3 files changed, 52 insertions(+), 26 deletions(-) diff --git a/ILSpy/Options/DisplaySettingsPanel.xaml b/ILSpy/Options/DisplaySettingsPanel.xaml index 7b62df65c..71d4e8b63 100644 --- a/ILSpy/Options/DisplaySettingsPanel.xaml +++ b/ILSpy/Options/DisplaySettingsPanel.xaml @@ -2,7 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" - xmlns:local="clr-namespace:ICSharpCode.ILSpy.Options"> + xmlns:local="clr-namespace:ICSharpCode.ILSpy.Options" + xmlns:system="clr-namespace:System;assembly=mscorlib"> @@ -35,25 +36,25 @@ - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 diff --git a/ILSpy/Options/OptionsDialog.xaml b/ILSpy/Options/OptionsDialog.xaml index f8b9232fb..7dd6d38df 100644 --- a/ILSpy/Options/OptionsDialog.xaml +++ b/ILSpy/Options/OptionsDialog.xaml @@ -2,7 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" - Style="{DynamicResource DialogWindow}" + xmlns:options="clr-namespace:ICSharpCode.ILSpy.Options" + Style="{DynamicResource DialogWindow}" WindowStartupLocation="CenterOwner" ResizeMode="CanResizeWithGrip" Title="{x:Static properties:Resources.Options}" Height="500" Width="600"> @@ -13,7 +14,18 @@ - + + + + + + + + + + + +