From 7a3b4a5f16aa4415bfc181ffa3fb91f479c7320f Mon Sep 17 00:00:00 2001 From: ZGGSONG Date: Thu, 15 Dec 2022 20:00:49 +0800 Subject: [PATCH] feat: add handyconftrol --- STranslate/App.xaml | 6 +++++- STranslate/MainWindow.xaml | 26 +++++++++++++++++++------- STranslate/MainWindow.xaml.cs | 9 +++++++-- STranslate/STranslate.csproj | 1 + 4 files changed, 32 insertions(+), 10 deletions(-) diff --git a/STranslate/App.xaml b/STranslate/App.xaml index 7be6f55..ab123e0 100644 --- a/STranslate/App.xaml +++ b/STranslate/App.xaml @@ -4,6 +4,10 @@ xmlns:local="clr-namespace:STranslate" StartupUri="MainWindow.xaml"> - + + + + + diff --git a/STranslate/MainWindow.xaml b/STranslate/MainWindow.xaml index 68b0eca..34aa94d 100644 --- a/STranslate/MainWindow.xaml +++ b/STranslate/MainWindow.xaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:STranslate" xmlns:vm="clr-namespace:STranslate.ViewModel" + xmlns:hc="https://handyorg.github.io/handycontrol" mc:Ignorable="d" Background="Transparent" WindowStartupLocation="CenterScreen" @@ -30,6 +31,12 @@ + + @@ -45,6 +52,8 @@ FontSize="18" MinHeight="35" TextWrapping="Wrap" + VerticalAlignment="Top" + HorizontalAlignment="Left" Text="{Binding InputTxt,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> @@ -55,7 +64,9 @@ -