|
|
@ -5,6 +5,7 @@
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:local="clr-namespace:STranslate"
|
|
|
|
xmlns:local="clr-namespace:STranslate"
|
|
|
|
xmlns:vm="clr-namespace:STranslate.ViewModel"
|
|
|
|
xmlns:vm="clr-namespace:STranslate.ViewModel"
|
|
|
|
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
@ -30,6 +31,12 @@
|
|
|
|
<RowDefinition Height="5*"/>
|
|
|
|
<RowDefinition Height="5*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hc:NotifyIcon Text="STranslate"
|
|
|
|
|
|
|
|
Click="NotifyIcon_Click"
|
|
|
|
|
|
|
|
IsBlink="False"
|
|
|
|
|
|
|
|
Visibility="Visible"
|
|
|
|
|
|
|
|
Icon="/Images/translate.ico"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!--input-->
|
|
|
|
<!--input-->
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid Margin="10">
|
|
|
|
<!--输入框-->
|
|
|
|
<!--输入框-->
|
|
|
@ -45,6 +52,8 @@
|
|
|
|
FontSize="18"
|
|
|
|
FontSize="18"
|
|
|
|
MinHeight="35"
|
|
|
|
MinHeight="35"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Text="{Binding InputTxt,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
Text="{Binding InputTxt,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
<KeyBinding Command="{Binding TranslateCmd}" Key="Enter"/>
|
|
|
|
<KeyBinding Command="{Binding TranslateCmd}" Key="Enter"/>
|
|
|
@ -55,7 +64,9 @@
|
|
|
|
<!--output-->
|
|
|
|
<!--output-->
|
|
|
|
<Grid Margin="10"
|
|
|
|
<Grid Margin="10"
|
|
|
|
Grid.Row="1">
|
|
|
|
Grid.Row="1">
|
|
|
|
<Label Content="翻译结果: "/>
|
|
|
|
<Label Content="翻译结果: "
|
|
|
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
|
|
|
HorizontalAlignment="Left"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!--输出框-->
|
|
|
|
<!--输出框-->
|
|
|
|
<Border BorderBrush="#000"
|
|
|
|
<Border BorderBrush="#000"
|
|
|
@ -67,13 +78,14 @@
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderThickness="0"
|
|
|
|
BorderThickness="0"
|
|
|
|
IsReadOnly="True"
|
|
|
|
IsReadOnly="True"
|
|
|
|
Margin="5"
|
|
|
|
Margin="5"
|
|
|
|
FontSize="18"
|
|
|
|
FontSize="18"
|
|
|
|
MinHeight="35"
|
|
|
|
MinHeight="35"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Text="{Binding OutputTxt}"/>
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
|
|
|
|
Text="{Binding OutputTxt}"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<!--<Button Content="复制"
|
|
|
|
<!--<Button Content="复制"
|
|
|
|
Margin="0,0,10,0"
|
|
|
|
Margin="0,0,10,0"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|