|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:tb="http://www.hardcodet.net/taskbar" |
7 | 7 | xmlns:local="clr-namespace:Magpie" |
| 8 | + xmlns:p="clr-namespace:Magpie.Properties;assembly=Magpie" |
8 | 9 | mc:Ignorable="d" |
9 | 10 | Title="Magpie" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" |
10 | 11 | Closing="Window_Closing" SourceInitialized="Window_SourceInitialized" StateChanged="Window_StateChanged" HorizontalAlignment="Left" VerticalAlignment="Top" SizeToContent="Height" Width="388"> |
|
29 | 30 | <Label Style="{StaticResource ContextMenuItemFontIcon}" Content="" /> |
30 | 31 | </MenuItem.Icon> |
31 | 32 | </MenuItem> |
32 | | - <MenuItem Header="5秒后缩放" Name="cmiScale" Click="CmiScale_Click"> |
| 33 | + <MenuItem Header="5Zoom_In_After_5S" Name="cmiScale" Click="CmiScale_Click"> |
33 | 34 | <MenuItem.Icon> |
34 | 35 | <Label Style="{StaticResource ContextMenuItemFontIcon}" Content="" /> |
35 | 36 | </MenuItem.Icon> |
|
40 | 41 | <Label Style="{StaticResource ContextMenuItemFontIcon}" Content="" /> |
41 | 42 | </MenuItem.Icon> |
42 | 43 | </MenuItem> |
43 | | - <MenuItem Header="选项" Click="CmiOptions_Click"> |
| 44 | + <MenuItem Header="Options" Click="CmiOptions_Click"> |
44 | 45 | <MenuItem.Icon> |
45 | 46 | <Label Style="{StaticResource ContextMenuItemFontIcon}" Content="" /> |
46 | 47 | </MenuItem.Icon> |
|
80 | 81 | <RowDefinition/> |
81 | 82 | </Grid.RowDefinitions> |
82 | 83 |
|
83 | | - <Label Style="{StaticResource Col0}" Content="热键" VerticalAlignment="Top" Margin="0,5,0,0" Padding="0,5,5,5"/> |
| 84 | + <Label Style="{StaticResource Col0}" Content="{x:Static p:Resources.Hotkey}" VerticalAlignment="Top" Margin="0,5,0,0" Padding="0,5,5,5"/> |
84 | 85 | <TextBox x:Name="txtHotkey" Grid.Column="1" Margin="10,5,10,0" VerticalAlignment="Top" Padding="1,3" TextChanged="TxtHotkey_TextChanged" > |
85 | 86 | <TextBox.ContextMenu> |
86 | 87 | <ContextMenu/> |
87 | 88 | </TextBox.ContextMenu> |
88 | 89 | </TextBox> |
89 | | - <Button Content="5秒后缩放" Name="btnScale" Click="BtnScale_Click" Grid.Column="2" HorizontalAlignment="Right" Margin="0,5,0,0" VerticalAlignment="Top" Padding="10,3" Width="80"/> |
| 90 | + <Button Content="{x:Static p:Resources.Zoom_In_After_5S}" Name="btnScale" Click="BtnScale_Click" Grid.Column="2" HorizontalAlignment="Right" Margin="0,5,0,0" VerticalAlignment="Top" Padding="10,3"/> |
90 | 91 |
|
91 | | - <Label Style="{StaticResource Col0}" Content="缩放模式" Grid.Row="1" VerticalAlignment="Center" Margin="0,20,0,0" Padding="0,5,5,5" /> |
| 92 | + <Label Style="{StaticResource Col0}" Content="{x:Static p:Resources.Scaling_Mode}" Grid.Row="1" VerticalAlignment="Center" Margin="0,20,0,0" Padding="0,5,5,5" /> |
92 | 93 | <ComboBox Name="cbbScaleMode" Grid.Row="1" SelectionChanged="CbbScaleMode_SelectionChanged" Margin="10,20,10,0" /> |
93 | 94 |
|
94 | | - <Label Style="{StaticResource Col0}" Content="抓取模式" Grid.Row="2" VerticalAlignment="Center" Margin="0,10,0,0" Padding="0,5,5,5"/> |
| 95 | + <Label Style="{StaticResource Col0}" Content="{x:Static p:Resources.Capture_Mode}" Grid.Row="2" VerticalAlignment="Top" Margin="0,9.667,0.333,0" Padding="0,5,5,5"/> |
95 | 96 | <ComboBox Name="cbbCaptureMode" Grid.Row="2" SelectionChanged="CbbCaptureMode_SelectionChanged" Margin="10,10,10,0"> |
96 | 97 | <ComboBoxItem Content="WinRT Capture" /> |
97 | 98 | <ComboBoxItem Content="GDI" /> |
98 | 99 | </ComboBox> |
99 | 100 |
|
100 | | - <Label Style="{StaticResource Col0}" Content="进程注入" Grid.Row="3" VerticalAlignment="Center" Margin="0,10,0,0" Padding="0,5,5,5"/> |
| 101 | + <Label Style="{StaticResource Col0}" Content="{x:Static p:Resources.Injection_Mode}" Grid.Row="3" VerticalAlignment="Center" Margin="0,10,0,0" Padding="0,5,5,5"/> |
101 | 102 | <ComboBox Name="cbbInjectMode" Grid.Row="3" SelectionChanged="CbbInjectMode_SelectionChanged" Margin="10,10,10,0"> |
102 | | - <ComboBoxItem Content="不注入" /> |
103 | | - <ComboBoxItem Content="运行时注入" /> |
104 | | - <ComboBoxItem Content="启动时注入" /> |
| 103 | + <ComboBoxItem Content="{x:Static p:Resources.No_Injection}" /> |
| 104 | + <ComboBoxItem Content="{x:Static p:Resources.Runtime_Injection}" /> |
| 105 | + <ComboBoxItem Content="{x:Static p:Resources.Injection_At_Startup}" /> |
105 | 106 | </ComboBox> |
106 | 107 | </Grid> |
107 | 108 |
|
|
115 | 116 | <ColumnDefinition /> |
116 | 117 | <ColumnDefinition Width="Auto" /> |
117 | 118 | </Grid.ColumnDefinitions> |
118 | | - <TextBlock x:Name="tbCurWndTitle" Margin="0" Text="当前窗口:" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/> |
| 119 | + <TextBlock x:Name="tbCurWndTitle" Margin="0" Text="Current_Window:" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/> |
119 | 120 | <Button Content="取消" Margin="5,0,0,0" VerticalAlignment="Center" Padding="5,2" Click="BtnCancelRestore_Click" Grid.Column="1"/> |
120 | 121 | </Grid> |
121 | 122 |
|
122 | 123 | <Button Click="BtnOptions_Click" Margin="10,0,0,0" VerticalAlignment="Center" Padding="10,5" Grid.Column="1" HorizontalAlignment="Right"> |
123 | 124 | <StackPanel Orientation="Horizontal"> |
124 | 125 | <Label FontFamily="Segoe MDL2 Assets" Content="" Padding="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="0" /> |
125 | | - <Label Content="选项" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0" Margin="5,0,0,0" /> |
| 126 | + <Label Content="{x:Static p:Resources.Options}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0" Margin="5,0,0,0" /> |
126 | 127 | </StackPanel> |
127 | 128 | </Button> |
128 | 129 | </Grid> |
|
0 commit comments