|
|
|
@ -1,12 +1,13 @@
|
|
|
|
|
<Window x:Class="STranslate.MainWindow"
|
|
|
|
|
<Window
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
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:tb="http://www.hardcodet.net/taskbar"
|
|
|
|
|
xmlns:local="clr-namespace:STranslate" x:Class="STranslate.MainWindow"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Name="Mwin"
|
|
|
|
|
x:Name="Mwin"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
|
MouseLeftButtonDown="Window_MouseLeftButtonDown"
|
|
|
|
@ -52,9 +53,7 @@
|
|
|
|
|
ToolTipText="STranslate"
|
|
|
|
|
ContextMenu="{StaticResource TrayMenu}"
|
|
|
|
|
DoubleClickCommand="{Binding InputTranslateCmd}"
|
|
|
|
|
IconSource="/Images/translate.ico">
|
|
|
|
|
|
|
|
|
|
</tb:TaskbarIcon>
|
|
|
|
|
IconSource="/Images/translate.ico"/>
|
|
|
|
|
|
|
|
|
|
<!--header-->
|
|
|
|
|
<Grid x:Name="Header">
|
|
|
|
@ -144,7 +143,7 @@
|
|
|
|
|
<!--输出框-->
|
|
|
|
|
<Border x:Name="BorderOutput"
|
|
|
|
|
Style="{DynamicResource BorderInOutputStyle}"
|
|
|
|
|
Height="{Binding ElementName=Output, Path=Height}">
|
|
|
|
|
Height="{Binding Height, ElementName=Output}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<TextBox x:Name="TextBoxOutput"
|
|
|
|
|
Style="{DynamicResource TextBoxOutputStyle}"
|
|
|
|
|