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