From 68d21d039c8ad0ff1c80e7dcf93aeb0a2d41cf17 Mon Sep 17 00:00:00 2001 From: liufei Date: Mon, 12 Jul 2021 17:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control/Other/CustomIconUrlDialog.xaml | 43 ++++++++++++++ Control/Other/CustomIconUrlDialog.xaml.cs | 30 ++++++++++ Control/Other/IconInfoDialog.xaml | 6 -- .../UserControls/Config/MotionControl.xaml | 1 - Control/UserControls/IconFont/IconPannel.xaml | 2 +- .../UserControls/IconFont/IconPannel.xaml.cs | 1 + .../PannelCard/LeftCardControl.xaml | 36 +++++------ .../PannelCard/LeftCardControl.xaml.cs | 15 ++--- Control/Windows/IconfontWindow.xaml | 32 ++++++++-- Control/Windows/IconfontWindow.xaml.cs | 59 ++++++++++++------- GeekDesk.csproj | 12 ++++ MainWindow.xaml.cs | 3 - Themes/Generic.xaml | 7 +++ Util/HttpUtil.cs | 29 +++++++++ ViewModel/AppConfig.cs | 34 +++++++++-- 15 files changed, 234 insertions(+), 76 deletions(-) create mode 100644 Control/Other/CustomIconUrlDialog.xaml create mode 100644 Control/Other/CustomIconUrlDialog.xaml.cs create mode 100644 Themes/Generic.xaml create mode 100644 Util/HttpUtil.cs diff --git a/Control/Other/CustomIconUrlDialog.xaml b/Control/Other/CustomIconUrlDialog.xaml new file mode 100644 index 0000000..46e2147 --- /dev/null +++ b/Control/Other/CustomIconUrlDialog.xaml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Control/Other/CustomIconUrlDialog.xaml.cs b/Control/Other/CustomIconUrlDialog.xaml.cs new file mode 100644 index 0000000..9f97e14 --- /dev/null +++ b/Control/Other/CustomIconUrlDialog.xaml.cs @@ -0,0 +1,30 @@ +using GeekDesk.Util; +using GeekDesk.ViewModel; +using Microsoft.Win32; +using System; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Media.Imaging; + + +namespace GeekDesk.Control.Other +{ + /// + /// TextDialog.xaml 的交互逻辑 + /// + public partial class CustomIconUrlDialog + { + + public CustomIconUrlDialog(AppConfig appConfig) + { + this.DataContext = appConfig; + InitializeComponent(); + } + + public CustomIconUrlDialog() + { + InitializeComponent(); + } + + } +} diff --git a/Control/Other/IconInfoDialog.xaml b/Control/Other/IconInfoDialog.xaml index 59e7403..c54364f 100644 --- a/Control/Other/IconInfoDialog.xaml +++ b/Control/Other/IconInfoDialog.xaml @@ -19,12 +19,6 @@ - - - - - - diff --git a/Control/UserControls/Config/MotionControl.xaml b/Control/UserControls/Config/MotionControl.xaml index 77c7aec..a8f70da 100644 --- a/Control/UserControls/Config/MotionControl.xaml +++ b/Control/UserControls/Config/MotionControl.xaml @@ -4,7 +4,6 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cvt="clr-namespace:GeekDesk.Converts" - xmlns:local="clr-namespace:GeekDesk.Control.UserControls" xmlns:hc="https://handyorg.github.io/handycontrol" mc:Ignorable="d" Background="AliceBlue" diff --git a/Control/UserControls/IconFont/IconPannel.xaml b/Control/UserControls/IconFont/IconPannel.xaml index 8f7e0ed..9a28711 100644 --- a/Control/UserControls/IconFont/IconPannel.xaml +++ b/Control/UserControls/IconFont/IconPannel.xaml @@ -8,7 +8,7 @@ mc:Ignorable="d" > - + diff --git a/Control/UserControls/IconFont/IconPannel.xaml.cs b/Control/UserControls/IconFont/IconPannel.xaml.cs index ace800e..93b80a4 100644 --- a/Control/UserControls/IconFont/IconPannel.xaml.cs +++ b/Control/UserControls/IconFont/IconPannel.xaml.cs @@ -23,6 +23,7 @@ namespace GeekDesk.Control.UserControls.IconFont { public IconPannel() { + //DataContext = this; InitializeComponent(); } diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml b/Control/UserControls/PannelCard/LeftCardControl.xaml index 4c44424..2862ced 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml @@ -107,7 +107,7 @@ - + - - - - +