|
|
@ -24,7 +24,7 @@
|
|
|
|
<vm:MainVM/>
|
|
|
|
<vm:MainVM/>
|
|
|
|
</Window.DataContext>
|
|
|
|
</Window.DataContext>
|
|
|
|
<Border BorderThickness="0"
|
|
|
|
<Border BorderThickness="0"
|
|
|
|
Background="BlanchedAlmond"
|
|
|
|
Background="#fff"
|
|
|
|
CornerRadius="10">
|
|
|
|
CornerRadius="10">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
@ -43,7 +43,9 @@
|
|
|
|
<Grid x:Name="Input"
|
|
|
|
<Grid x:Name="Input"
|
|
|
|
Margin="10,10,10,0">
|
|
|
|
Margin="10,10,10,0">
|
|
|
|
<!--输入框-->
|
|
|
|
<!--输入框-->
|
|
|
|
<Border x:Name="BorderInput" BorderBrush="#000"
|
|
|
|
<Border x:Name="BorderInput"
|
|
|
|
|
|
|
|
Background="#f6f6f6"
|
|
|
|
|
|
|
|
BorderBrush="#000"
|
|
|
|
BorderThickness="1"
|
|
|
|
BorderThickness="1"
|
|
|
|
CornerRadius="4"
|
|
|
|
CornerRadius="4"
|
|
|
|
Margin="5"
|
|
|
|
Margin="5"
|
|
|
@ -68,22 +70,35 @@
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<!--mid-->
|
|
|
|
<!--mid-->
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
Margin="10,0,10,0"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Orientation="Horizontal">
|
|
|
|
Orientation="Horizontal">
|
|
|
|
<Label Content="翻译结果: "
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
HorizontalAlignment="Left"/>
|
|
|
|
|
|
|
|
<Label Content="当前语言:"
|
|
|
|
<Label Content="当前语言:"
|
|
|
|
Margin="10,0,0,0"/>
|
|
|
|
Background="Transparent"
|
|
|
|
|
|
|
|
BorderThickness="0"/>
|
|
|
|
<ComboBox x:Name="InCombo"
|
|
|
|
<ComboBox x:Name="InCombo"
|
|
|
|
Style="{StaticResource ComboBoxBaseStyle}"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
|
|
|
|
Style="{StaticResource ComboBox.Small}"
|
|
|
|
ItemsSource="{Binding InputCombo}"
|
|
|
|
ItemsSource="{Binding InputCombo}"
|
|
|
|
SelectedItem="{Binding InputComboSelected}"/>
|
|
|
|
SelectedItem="{Binding InputComboSelected}"/>
|
|
|
|
<Label Content="目标语言:"/>
|
|
|
|
<Label Content="目标语言:"
|
|
|
|
|
|
|
|
Margin="10,0"
|
|
|
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
|
|
|
BorderThickness="0"/>
|
|
|
|
<ComboBox x:Name="OutCombo"
|
|
|
|
<ComboBox x:Name="OutCombo"
|
|
|
|
Style="{StaticResource ComboBoxBaseStyle}"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
|
|
|
|
Style="{StaticResource ComboBox.Small}"
|
|
|
|
ItemsSource="{Binding OutputCombo}"
|
|
|
|
ItemsSource="{Binding OutputCombo}"
|
|
|
|
SelectedItem="{Binding OutputComboSelected}"/>
|
|
|
|
SelectedItem="{Binding OutputComboSelected}"/>
|
|
|
|
|
|
|
|
<Button Margin="10,0,0,0"
|
|
|
|
|
|
|
|
Cursor="Hand"
|
|
|
|
|
|
|
|
Command="{Binding CopyTranslateResultCmd}">
|
|
|
|
|
|
|
|
<Image Source="/Images/copy.png"/>
|
|
|
|
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="复制成功"/>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<!--output-->
|
|
|
|
<!--output-->
|
|
|
|
<Grid Margin="10,0,10,10"
|
|
|
|
<Grid Margin="10,0,10,10"
|
|
|
@ -91,12 +106,14 @@
|
|
|
|
Grid.Row="2">
|
|
|
|
Grid.Row="2">
|
|
|
|
<!--输出框-->
|
|
|
|
<!--输出框-->
|
|
|
|
<Border x:Name="BorderOutput"
|
|
|
|
<Border x:Name="BorderOutput"
|
|
|
|
|
|
|
|
Background="#f6f6f6"
|
|
|
|
BorderBrush="#000"
|
|
|
|
BorderBrush="#000"
|
|
|
|
BorderThickness="1"
|
|
|
|
BorderThickness="1"
|
|
|
|
CornerRadius="4"
|
|
|
|
CornerRadius="4"
|
|
|
|
Margin="5"
|
|
|
|
Margin="5"
|
|
|
|
Height="{Binding ElementName=Output, Path=Height}">
|
|
|
|
Height="{Binding ElementName=Output, Path=Height}">
|
|
|
|
<TextBox x:Name="TextBoxOutput"
|
|
|
|
<hc:TextBox x:Name="TextBoxOutput"
|
|
|
|
|
|
|
|
hc:InfoElement.Placeholder="翻译"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderThickness="0"
|
|
|
|
BorderThickness="0"
|
|
|
|