From 04fcde2b0fea93fc66bf77ac90bb04a20326fcbf Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Mon, 9 Jan 2023 14:15:24 +0800 Subject: [PATCH] feat: add loading --- STranslate/STranslate.csproj | 7 ++ STranslate/View/Loading.xaml | 45 +++++++++ STranslate/View/Loading.xaml.cs | 28 ++++++ STranslate/View/MainWindow.xaml | 156 ++++++++++++++++++++++++++++---- STranslate/ViewModel/MainVM.cs | 14 ++- 5 files changed, 231 insertions(+), 19 deletions(-) create mode 100644 STranslate/View/Loading.xaml create mode 100644 STranslate/View/Loading.xaml.cs diff --git a/STranslate/STranslate.csproj b/STranslate/STranslate.csproj index 39f86b1..a9504f9 100644 --- a/STranslate/STranslate.csproj +++ b/STranslate/STranslate.csproj @@ -104,6 +104,10 @@ + + Designer + MSBuild:Compile + MSBuild:Compile Designer @@ -112,6 +116,9 @@ App.xaml Code + + Loading.xaml + MainWindow.xaml Code diff --git a/STranslate/View/Loading.xaml b/STranslate/View/Loading.xaml new file mode 100644 index 0000000..107929a --- /dev/null +++ b/STranslate/View/Loading.xaml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/STranslate/View/Loading.xaml.cs b/STranslate/View/Loading.xaml.cs new file mode 100644 index 0000000..3c4bb12 --- /dev/null +++ b/STranslate/View/Loading.xaml.cs @@ -0,0 +1,28 @@ +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 STranslate.View +{ + /// + /// Loading.xaml 的交互逻辑 + /// + public partial class Loading : UserControl + { + public Loading() + { + InitializeComponent(); + } + } +} diff --git a/STranslate/View/MainWindow.xaml b/STranslate/View/MainWindow.xaml index 612c4fa..d459f27 100644 --- a/STranslate/View/MainWindow.xaml +++ b/STranslate/View/MainWindow.xaml @@ -37,6 +37,122 @@ + + + + + + + + + + + + + + + + + + + + + @@ -163,41 +279,47 @@ - - + + + + + - - + - -