|
|
@ -23,11 +23,16 @@
|
|
|
|
<Window.Resources>
|
|
|
|
<Window.Resources>
|
|
|
|
<ContextMenu x:Key="TrayMenu">
|
|
|
|
<ContextMenu x:Key="TrayMenu">
|
|
|
|
<MenuItem Header="输入翻译"
|
|
|
|
<MenuItem Header="输入翻译"
|
|
|
|
|
|
|
|
InputGestureText="Alt+A"
|
|
|
|
Command="{Binding InputTranslateCmd}"/>
|
|
|
|
Command="{Binding InputTranslateCmd}"/>
|
|
|
|
<MenuItem Header="截图翻译"
|
|
|
|
<MenuItem Header="截图翻译"
|
|
|
|
|
|
|
|
InputGestureText="Alt+S"
|
|
|
|
Command="{Binding ScreenShotTranslateCmd}"/>
|
|
|
|
Command="{Binding ScreenShotTranslateCmd}"/>
|
|
|
|
<Separator />
|
|
|
|
<MenuItem Header="划词翻译"
|
|
|
|
|
|
|
|
InputGestureText="Alt+D"
|
|
|
|
|
|
|
|
IsEnabled="False"/>
|
|
|
|
<MenuItem Header="显示主界面"
|
|
|
|
<MenuItem Header="显示主界面"
|
|
|
|
|
|
|
|
InputGestureText="Alt+G"
|
|
|
|
Command="{Binding ShowMainWinCmd}"/>
|
|
|
|
Command="{Binding ShowMainWinCmd}"/>
|
|
|
|
<MenuItem Header="开机自启"
|
|
|
|
<MenuItem Header="开机自启"
|
|
|
|
IsChecked="{Binding IsStartup}"
|
|
|
|
IsChecked="{Binding IsStartup}"
|
|
|
@ -64,15 +69,15 @@
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="5*" />
|
|
|
|
<RowDefinition Height="5*"/>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="7*" />
|
|
|
|
<RowDefinition Height="7*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!--tray-->
|
|
|
|
<!--tray-->
|
|
|
|
<tb:TaskbarIcon x:Name="myNotifyIcon"
|
|
|
|
<tb:TaskbarIcon x:Name="myNotifyIcon"
|
|
|
|
Visibility="{Binding IsVisibility, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
|
Visibility="{Binding IsVisibility, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
|
ToolTipText="STranslate"
|
|
|
|
ToolTipText="{Binding TrayToolTip}"
|
|
|
|
ContextMenu="{StaticResource TrayMenu}"
|
|
|
|
ContextMenu="{StaticResource TrayMenu}"
|
|
|
|
DoubleClickCommand="{Binding InputTranslateCmd}"
|
|
|
|
DoubleClickCommand="{Binding InputTranslateCmd}"
|
|
|
|
IconSource="/Images/translate.ico"/>
|
|
|
|
IconSource="/Images/translate.ico"/>
|
|
|
|