diff --git a/Control/ConfigDialog.xaml b/Control/ConfigDialog.xaml
deleted file mode 100644
index 6f7aedc..0000000
--- a/Control/ConfigDialog.xaml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Control/ConfigDialog.xaml.cs b/Control/ConfigDialog.xaml.cs
deleted file mode 100644
index c9c22e0..0000000
--- a/Control/ConfigDialog.xaml.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-
-namespace GeekDesk.Control
-{
- ///
- /// ConfigDialog.xaml 的交互逻辑
- ///
- public partial class ConfigDialog
- {
- public ConfigDialog()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Control/ConfigWindow.xaml b/Control/ConfigWindow.xaml
new file mode 100644
index 0000000..11eeed6
--- /dev/null
+++ b/Control/ConfigWindow.xaml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Control/ConfigWindow.xaml.cs b/Control/ConfigWindow.xaml.cs
new file mode 100644
index 0000000..de0ec47
--- /dev/null
+++ b/Control/ConfigWindow.xaml.cs
@@ -0,0 +1,25 @@
+
+using GalaSoft.MvvmLight.Command;
+using GeekDesk.Control.UserControls;
+using GeekDesk.ViewModel;
+using HandyControl.Controls;
+using HandyControl.Data;
+using System;
+
+namespace GeekDesk.Control
+{
+ ///
+ /// ConfigDialog.xaml 的交互逻辑
+ ///
+ public partial class ConfigWindow
+ {
+ public ConfigWindow(AppConfig appConfig)
+ {
+ InitializeComponent();
+ this.DataContext = appConfig;
+ LeftCard.Content = new SettingControl();
+ this.Topmost = true;
+ }
+
+ }
+}
diff --git a/Control/UserControls/SettingControl.xaml b/Control/UserControls/SettingControl.xaml
new file mode 100644
index 0000000..b99ee63
--- /dev/null
+++ b/Control/UserControls/SettingControl.xaml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Control/UserControls/SettingControl.xaml.cs b/Control/UserControls/SettingControl.xaml.cs
new file mode 100644
index 0000000..e50a279
--- /dev/null
+++ b/Control/UserControls/SettingControl.xaml.cs
@@ -0,0 +1,39 @@
+using GeekDesk.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace GeekDesk.Control.UserControls
+{
+ ///
+ /// SettingControl.xaml 的交互逻辑
+ ///
+ public partial class SettingControl : UserControl
+ {
+ public SettingControl()
+ {
+ InitializeComponent();
+ }
+
+ private void SimplePanel_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
+ {
+ CommonCode.SaveAppData(MainWindow.appData);
+ }
+
+ private void CheckBox_Unchecked(object sender, RoutedEventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/GeekDesk.csproj b/GeekDesk.csproj
index f747356..c1e0ca5 100644
--- a/GeekDesk.csproj
+++ b/GeekDesk.csproj
@@ -41,6 +41,15 @@
packages\CommonServiceLocator.2.0.6\lib\net45\CommonServiceLocator.dll
+
+ packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
+
+
+ packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.Extras.dll
+
+
+ packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.Platform.dll
+
packages\HandyControl.3.1.0\lib\net452\HandyControl.dll
@@ -50,6 +59,9 @@
packages\System.Drawing.Common.6.0.0-preview.3.21201.4\lib\net461\System.Drawing.Common.dll
+
+ packages\MvvmLightLibs.5.4.1.1\lib\net45\System.Windows.Interactivity.dll
+
@@ -76,12 +88,15 @@
-
- ConfigDialog.xaml
+
+ ConfigWindow.xaml
IconInfoDialog.xaml
+
+ SettingControl.xaml
+
@@ -102,7 +117,7 @@
-
+
Designer
MSBuild:Compile
@@ -110,6 +125,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
diff --git a/MainWindow.xaml b/MainWindow.xaml
index a7fa242..c2228e7 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -45,7 +45,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
@@ -143,11 +143,11 @@
Initialized="SettingButton_Initialized"
x:Name="SettingButton"
>
-
+