|
10 | 10 | <StackPanel Orientation="Vertical" Margin="8,0,0,0"> |
11 | 11 | <TextBlock Classes="bold" FontSize="18" Text="{DynamicResource Text.Clone}"/> |
12 | 12 |
|
13 | | - <Grid Margin="8,16,0,0" Height="28" ColumnDefinitions="140,*"> |
14 | | - <TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.RemoteURL}"/> |
15 | | - <TextBox Grid.Column="1" CornerRadius="3" Text="{Binding Remote, Mode=TwoWay}" v:AutoFocusBehaviour.IsEnabled="True"/> |
16 | | - </Grid> |
17 | | - <Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="140,*" IsVisible="{Binding UseSSH}"> |
18 | | - <TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.SSHKey}"/> |
19 | | - <TextBox Grid.Column="1" |
| 13 | + <Grid Margin="8,16,0,0" RowDefinitions="32,Auto,32,32,32" ColumnDefinitions="Auto,*"> |
| 14 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 15 | + HorizontalAlignment="Right" |
| 16 | + Margin="0,0,8,0" |
| 17 | + Text="{DynamicResource Text.Clone.RemoteURL}"/> |
| 18 | + <TextBox Grid.Row="0" Grid.Column="1" |
| 19 | + Height="28" |
| 20 | + CornerRadius="3" |
| 21 | + Text="{Binding Remote, Mode=TwoWay}" |
| 22 | + v:AutoFocusBehaviour.IsEnabled="True"/> |
| 23 | + |
| 24 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 25 | + HorizontalAlignment="Right" |
| 26 | + Margin="0,0,8,0" |
| 27 | + Text="{DynamicResource Text.SSHKey}" |
| 28 | + IsVisible="{Binding UseSSH}"/> |
| 29 | + <TextBox Grid.Row="1" Grid.Column="1" |
20 | 30 | x:Name="TxtSshKey" |
21 | 31 | Height="28" |
22 | 32 | CornerRadius="3" |
23 | 33 | Watermark="{DynamicResource Text.SSHKey.Placeholder}" |
24 | | - Text="{Binding SSHKey, Mode=TwoWay}"> |
| 34 | + Text="{Binding SSHKey, Mode=TwoWay}" |
| 35 | + IsVisible="{Binding UseSSH}"> |
25 | 36 | <TextBox.InnerRightContent> |
26 | | - <Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey"> |
| 37 | + <Button Classes="icon_button" Width="28" Height="28" Click="SelectSSHKey"> |
27 | 38 | <Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/> |
28 | 39 | </Button> |
29 | 40 | </TextBox.InnerRightContent> |
30 | 41 | </TextBox> |
31 | | - </Grid> |
32 | | - <Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="140,*"> |
33 | | - <TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.ParentFolder}"/> |
34 | | - <TextBox Grid.Column="1" |
| 42 | + |
| 43 | + <TextBlock Grid.Row="2" Grid.Column="0" |
| 44 | + HorizontalAlignment="Right" |
| 45 | + Margin="0,0,8,0" |
| 46 | + Text="{DynamicResource Text.Clone.ParentFolder}"/> |
| 47 | + <TextBox Grid.Row="2" Grid.Column="1" |
35 | 48 | x:Name="TxtParentFolder" |
36 | 49 | Height="28" |
37 | 50 | CornerRadius="3" |
38 | 51 | Text="{Binding ParentFolder, Mode=TwoWay}"> |
39 | 52 | <TextBox.InnerRightContent> |
40 | | - <Button Classes="icon_button" Width="30" Height="30" Margin="4,0,0,0" Click="SelectParentFolder"> |
| 53 | + <Button Classes="icon_button" Width="28" Height="28" Margin="4,0,0,0" Click="SelectParentFolder"> |
41 | 54 | <Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/> |
42 | 55 | </Button> |
43 | 56 | </TextBox.InnerRightContent> |
44 | 57 | </TextBox> |
45 | | - </Grid> |
46 | | - <Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="140,*"> |
47 | | - <TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.LocalName}"/> |
48 | | - <TextBox Grid.Column="1" CornerRadius="3" Watermark="{DynamicResource Text.Clone.LocalName.Placeholder}" Text="{Binding Local, Mode=TwoWay}"/> |
49 | | - </Grid> |
50 | | - <Grid Margin="8,4,0,0" Height="28" ColumnDefinitions="140,*"> |
51 | | - <TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,0,8,0" Text="{DynamicResource Text.Clone.AdditionalParam}"/> |
52 | | - <TextBox Grid.Column="1" CornerRadius="3" Watermark="{DynamicResource Text.Clone.AdditionalParam.Placeholder}" Text="{Binding ExtraArgs, Mode=TwoWay}"/> |
| 58 | + |
| 59 | + <TextBlock Grid.Row="3" Grid.Column="0" |
| 60 | + HorizontalAlignment="Right" |
| 61 | + Margin="0,0,8,0" |
| 62 | + Text="{DynamicResource Text.Clone.LocalName}"/> |
| 63 | + <TextBox Grid.Row="3" Grid.Column="1" |
| 64 | + Height="28" |
| 65 | + CornerRadius="3" |
| 66 | + Watermark="{DynamicResource Text.Clone.LocalName.Placeholder}" |
| 67 | + Text="{Binding Local, Mode=TwoWay}"/> |
| 68 | + |
| 69 | + <TextBlock Grid.Row="4" Grid.Column="0" |
| 70 | + HorizontalAlignment="Right" |
| 71 | + Margin="0,0,8,0" |
| 72 | + Text="{DynamicResource Text.Clone.AdditionalParam}"/> |
| 73 | + <TextBox Grid.Row="4" Grid.Column="1" |
| 74 | + Height="28" |
| 75 | + CornerRadius="3" |
| 76 | + Watermark="{DynamicResource Text.Clone.AdditionalParam.Placeholder}" |
| 77 | + Text="{Binding ExtraArgs, Mode=TwoWay}"/> |
53 | 78 | </Grid> |
54 | 79 | </StackPanel> |
55 | 80 | </UserControl> |
0 commit comments