|
150 | 150 | </ContentControl> |
151 | 151 | </Grid> |
152 | 152 |
|
153 | | - <!-- Popup --> |
| 153 | + <!-- Generator Popup --> |
154 | 154 | <Border Grid.Row="1" |
155 | 155 | IsVisible="{Binding Generator, Mode=OneWay, Converter={x:Static ObjectConverters.IsNotNull}}"> |
156 | 156 | <ContentControl Content="{Binding Generator}"> |
|
170 | 170 | Classes="bold" |
171 | 171 | Text="{DynamicResource Text.SSHKeyHelper.Generator}"/> |
172 | 172 |
|
173 | | - <Grid Margin="0,16,0,0" RowDefinitions="32,32,Auto,Auto,32" ColumnDefinitions="160,*"> |
| 173 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,Auto,Auto,32" ColumnDefinitions="160,*"> |
174 | 174 | <TextBlock Grid.Row="0" Grid.Column="0" |
| 175 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 176 | + Margin="0,0,8,0" |
| 177 | + Text="{DynamicResource Text.SSHKeyHelper.Generator.Type}"/> |
| 178 | + <ComboBox Grid.Row="0" Grid.Column="1" |
| 179 | + Height="28" Padding="8,0" |
| 180 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 181 | + ItemsSource="{Binding Source={x:Static m:SSHKeyType.Supported}}" |
| 182 | + SelectedItem="{Binding Type, Mode=TwoWay}" |
| 183 | + Grid.IsSharedSizeScope="True"> |
| 184 | + <ComboBox.ItemTemplate> |
| 185 | + <DataTemplate DataType="m:SSHKeyType"> |
| 186 | + <Grid Height="20" VerticalAlignment="Center"> |
| 187 | + <Grid.ColumnDefinitions> |
| 188 | + <ColumnDefinition Width="*" SharedSizeGroup="KeyTypeNameColumn"/> |
| 189 | + <ColumnDefinition Width="Auto" SharedSizeGroup="KeyTypeDescColumn"/> |
| 190 | + </Grid.ColumnDefinitions> |
| 191 | + |
| 192 | + <TextBlock Grid.Column="0" Text="{Binding Name, Mode=OneWay}"/> |
| 193 | + <TextBlock Grid.Column="1" |
| 194 | + Text="{Binding Description, Mode=OneWay}" |
| 195 | + Margin="8,0" |
| 196 | + FontSize="11" |
| 197 | + Foreground="{DynamicResource Brush.FG2}"/> |
| 198 | + </Grid> |
| 199 | + </DataTemplate> |
| 200 | + </ComboBox.ItemTemplate> |
| 201 | + </ComboBox> |
| 202 | + |
| 203 | + <TextBlock Grid.Row="1" Grid.Column="0" |
175 | 204 | HorizontalAlignment="Right" VerticalAlignment="Center" |
176 | 205 | Margin="0,0,8,0" |
177 | 206 | Text="{DynamicResource Text.SSHKeyHelper.Generator.Name}"/> |
178 | | - <TextBox Grid.Row="0" Grid.Column="1" |
| 207 | + <TextBox Grid.Row="1" Grid.Column="1" |
179 | 208 | Height="28" |
180 | 209 | CornerRadius="3" |
181 | 210 | VerticalAlignment="Center" |
182 | 211 | Watermark="{DynamicResource Text.SSHKeyHelper.Generator.Name.Placeholder}" |
183 | 212 | Text="{Binding Name, Mode=TwoWay}"/> |
184 | 213 |
|
185 | | - <TextBlock Grid.Row="1" Grid.Column="0" |
| 214 | + <TextBlock Grid.Row="2" Grid.Column="0" |
186 | 215 | HorizontalAlignment="Right" VerticalAlignment="Center" |
187 | 216 | Margin="0,0,8,0" |
188 | 217 | Text="{DynamicResource Text.SSHKeyHelper.Generator.Email}"/> |
189 | | - <TextBox Grid.Row="1" Grid.Column="1" |
| 218 | + <TextBox Grid.Row="2" Grid.Column="1" |
190 | 219 | Height="28" |
191 | 220 | CornerRadius="3" |
192 | 221 | VerticalAlignment="Center" |
193 | 222 | Watermark="{DynamicResource Text.SSHKeyHelper.Generator.Email.Placeholder}" |
194 | 223 | Text="{Binding Email, Mode=TwoWay}"/> |
195 | 224 |
|
196 | | - <TextBlock Grid.Row="2" Grid.Column="0" |
| 225 | + <TextBlock Grid.Row="3" Grid.Column="0" |
197 | 226 | HorizontalAlignment="Right" VerticalAlignment="Center" |
198 | 227 | Margin="0,0,8,0" |
199 | 228 | Text="{DynamicResource Text.SSHKeyHelper.Generator.Passphrase}" |
200 | 229 | IsVisible="{Binding UsePassphrase, Mode=OneWay}"/> |
201 | | - <TextBox Grid.Row="2" Grid.Column="1" |
| 230 | + <TextBox Grid.Row="3" Grid.Column="1" |
202 | 231 | Height="28" Margin="0,2" |
203 | 232 | CornerRadius="3" |
204 | 233 | VerticalAlignment="Center" |
205 | 234 | Text="{Binding Passphrase, Mode=TwoWay}" |
206 | 235 | IsVisible="{Binding UsePassphrase, Mode=OneWay}"/> |
207 | 236 |
|
208 | | - <TextBlock Grid.Row="3" Grid.Column="0" |
| 237 | + <TextBlock Grid.Row="4" Grid.Column="0" |
209 | 238 | HorizontalAlignment="Right" VerticalAlignment="Center" |
210 | 239 | Margin="0,0,8,0" |
211 | 240 | Text="{DynamicResource Text.SSHKeyHelper.Generator.ConfirmPassphrase}" |
212 | 241 | IsVisible="{Binding UsePassphrase, Mode=OneWay}"/> |
213 | | - <TextBox Grid.Row="3" Grid.Column="1" |
| 242 | + <TextBox Grid.Row="4" Grid.Column="1" |
214 | 243 | Height="28" Margin="0,2" |
215 | 244 | CornerRadius="3" |
216 | 245 | VerticalAlignment="Center" |
217 | 246 | Text="{Binding ConfirmedPassphrase, Mode=TwoWay}" |
218 | 247 | IsVisible="{Binding UsePassphrase, Mode=OneWay}"/> |
219 | 248 |
|
220 | | - <CheckBox Grid.Row="4" Grid.Column="1" |
| 249 | + <CheckBox Grid.Row="5" Grid.Column="1" |
221 | 250 | Content="{DynamicResource Text.SSHKeyHelper.Generator.UsePassphrase}" |
222 | 251 | IsChecked="{Binding UsePassphrase, Mode=TwoWay}"/> |
223 | 252 | </Grid> |
|
0 commit comments