|
|
@ -5,7 +5,6 @@
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:vm="clr-namespace:STranslate.ViewModel"
|
|
|
|
xmlns:vm="clr-namespace:STranslate.ViewModel"
|
|
|
|
xmlns:model="clr-namespace:STranslate.Model"
|
|
|
|
xmlns:model="clr-namespace:STranslate.Model"
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
@ -91,11 +90,6 @@
|
|
|
|
BorderThickness="0"
|
|
|
|
BorderThickness="0"
|
|
|
|
Command="{Binding CopyInputCmd}">
|
|
|
|
Command="{Binding CopyInputCmd}">
|
|
|
|
<Image Source="/Images/copy2.png"/>
|
|
|
|
<Image Source="/Images/copy2.png"/>
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="copied" />
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<Border Margin="10,0,0,0"
|
|
|
|
<Border Margin="10,0,0,0"
|
|
|
|
Background="#eaeaea"
|
|
|
|
Background="#eaeaea"
|
|
|
@ -125,7 +119,6 @@
|
|
|
|
BorderThickness="0" />
|
|
|
|
BorderThickness="0" />
|
|
|
|
<ComboBox x:Name="InCombo"
|
|
|
|
<ComboBox x:Name="InCombo"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
Style="{StaticResource ComboBox.Small}"
|
|
|
|
|
|
|
|
ItemsSource="{Binding InputCombo}"
|
|
|
|
ItemsSource="{Binding InputCombo}"
|
|
|
|
SelectedItem="{Binding InputComboSelected}" />
|
|
|
|
SelectedItem="{Binding InputComboSelected}" />
|
|
|
|
<Separator Margin="20,0"/>
|
|
|
|
<Separator Margin="20,0"/>
|
|
|
@ -134,7 +127,6 @@
|
|
|
|
BorderThickness="0" />
|
|
|
|
BorderThickness="0" />
|
|
|
|
<ComboBox x:Name="OutCombo"
|
|
|
|
<ComboBox x:Name="OutCombo"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
Background="#f6f6f6"
|
|
|
|
Style="{StaticResource ComboBox.Small}"
|
|
|
|
|
|
|
|
ItemsSource="{Binding OutputCombo}"
|
|
|
|
ItemsSource="{Binding OutputCombo}"
|
|
|
|
SelectedItem="{Binding OutputComboSelected}" />
|
|
|
|
SelectedItem="{Binding OutputComboSelected}" />
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
@ -152,20 +144,19 @@
|
|
|
|
Margin="5"
|
|
|
|
Margin="5"
|
|
|
|
Height="{Binding ElementName=Output, Path=Height}">
|
|
|
|
Height="{Binding ElementName=Output, Path=Height}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<hc:TextBox x:Name="TextBoxOutput"
|
|
|
|
<TextBox x:Name="TextBoxOutput"
|
|
|
|
hc:InfoElement.Placeholder="翻译结果"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderBrush="{x:Null}"
|
|
|
|
BorderThickness="0"
|
|
|
|
BorderThickness="0"
|
|
|
|
IsReadOnly="True"
|
|
|
|
IsReadOnly="True"
|
|
|
|
Margin="5,5,5,30"
|
|
|
|
Margin="5,5,5,30"
|
|
|
|
MaxHeight="400"
|
|
|
|
MaxHeight="400"
|
|
|
|
FontSize="16"
|
|
|
|
FontSize="16"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
VerticalContentAlignment="Top"
|
|
|
|
VerticalContentAlignment="Top"
|
|
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
Text="{Binding OutputTxt}"/>
|
|
|
|
Text="{Binding OutputTxt}"/>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
Margin="10,5"
|
|
|
|
Margin="10,5"
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
@ -180,11 +171,6 @@
|
|
|
|
Visibility="{Binding OutputTxt,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Visibility="{Binding OutputTxt,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Command="{Binding CopyResultCmd}">
|
|
|
|
Command="{Binding CopyResultCmd}">
|
|
|
|
<Image Source="/Images/copy2.png"/>
|
|
|
|
<Image Source="/Images/copy2.png"/>
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="copied" />
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<!--蛇形复制-->
|
|
|
|
<!--蛇形复制-->
|
|
|
|
<Button Cursor="Hand"
|
|
|
|
<Button Cursor="Hand"
|
|
|
@ -198,11 +184,6 @@
|
|
|
|
Visibility="{Binding SnakeRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Visibility="{Binding SnakeRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Command="{Binding CopySnakeResultCmd}">
|
|
|
|
Command="{Binding CopySnakeResultCmd}">
|
|
|
|
<Image Source="/Images/copy_s.png"/>
|
|
|
|
<Image Source="/Images/copy_s.png"/>
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="copied" />
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<!--驼峰复制-->
|
|
|
|
<!--驼峰复制-->
|
|
|
|
<Button Cursor="Hand"
|
|
|
|
<Button Cursor="Hand"
|
|
|
@ -215,11 +196,6 @@
|
|
|
|
Visibility="{Binding SmallHumpRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Visibility="{Binding SmallHumpRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Command="{Binding CopySmallHumpResultCmd}">
|
|
|
|
Command="{Binding CopySmallHumpResultCmd}">
|
|
|
|
<Image Source="/Images/copy_h.png"/>
|
|
|
|
<Image Source="/Images/copy_h.png"/>
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="copied" />
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<!--驼峰复制-->
|
|
|
|
<!--驼峰复制-->
|
|
|
|
<Button Cursor="Hand"
|
|
|
|
<Button Cursor="Hand"
|
|
|
@ -233,11 +209,6 @@
|
|
|
|
Visibility="{Binding LargeHumpRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Visibility="{Binding LargeHumpRet,Converter={StaticResource String2VisibilityConverter}}"
|
|
|
|
Command="{Binding CopyLargeHumpResultCmd}">
|
|
|
|
Command="{Binding CopyLargeHumpResultCmd}">
|
|
|
|
<Image Source="/Images/copy_h2.png"/>
|
|
|
|
<Image Source="/Images/copy_h2.png"/>
|
|
|
|
<hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
<TextBlock Text="copied" />
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</hc:FloatingBlock.ContentTemplate>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|