From ccdad1fb0487b60abfcd533c6a94d8b5e0c08adc Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Mon, 26 Dec 2022 16:47:21 +0800 Subject: [PATCH] perf: update ui and stringconverter by original code --- STranslate/MainWindow.xaml | 66 +++++++++++-------------- STranslate/Model/VisibilityConverter.cs | 24 +++++++++ STranslate/STranslate.csproj | 1 + STranslate/STranslate.yml | 2 +- 4 files changed, 55 insertions(+), 38 deletions(-) create mode 100644 STranslate/Model/VisibilityConverter.cs diff --git a/STranslate/MainWindow.xaml b/STranslate/MainWindow.xaml index b618f72..fb9de5d 100644 --- a/STranslate/MainWindow.xaml +++ b/STranslate/MainWindow.xaml @@ -4,6 +4,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:STranslate.ViewModel" + xmlns:model="clr-namespace:STranslate.Model" xmlns:hc="https://handyorg.github.io/handycontrol" mc:Ignorable="d" Background="Transparent" @@ -23,7 +24,7 @@ - + - - - - @@ -183,7 +158,7 @@ BorderBrush="{x:Null}" BorderThickness="0" IsReadOnly="True" - Margin="5,5,5,35" + Margin="5,5,5,30" MaxHeight="400" FontSize="16" TextWrapping="Wrap" @@ -192,9 +167,14 @@ VerticalScrollBarVisibility="Auto" Text="{Binding OutputTxt}"/> + Margin="10,5" + VerticalAlignment="Bottom">