|
36 | 36 | Margin="0,0,8,0" |
37 | 37 | Text="{DynamicResource Text.AddWorktree.WhatToCheckout}"/> |
38 | 38 | <StackPanel Grid.Row="1" Grid.Column="1" Height="32" Orientation="Horizontal"> |
39 | | - <RadioButton Content="{DynamicResource Text.AddWorktree.WhatToCheckout.Existing}" |
40 | | - GroupName="LocalChanges" |
41 | | - IsChecked="{Binding UseExistingBranch, Mode=TwoWay}" /> |
42 | 39 | <RadioButton Content="{DynamicResource Text.AddWorktree.WhatToCheckout.CreateNew}" |
43 | | - GroupName="LocalChanges" |
44 | | - Margin="8,0,0,0" /> |
| 40 | + GroupName="WhatToCheckout" |
| 41 | + IsChecked="{Binding CreateNewBranch, Mode=TwoWay}"/> |
| 42 | + <RadioButton Content="{DynamicResource Text.AddWorktree.WhatToCheckout.Existing}" |
| 43 | + GroupName="WhatToCheckout" |
| 44 | + Margin="8,0,0,0"/> |
45 | 45 | </StackPanel> |
46 | 46 |
|
47 | 47 | <TextBlock Grid.Row="2" Grid.Column="0" |
48 | 48 | HorizontalAlignment="Right" VerticalAlignment="Center" |
49 | 49 | Margin="0,0,8,0" |
50 | 50 | Text="{DynamicResource Text.AddWorktree.Name}"/> |
| 51 | + <TextBox Grid.Row="2" Grid.Column="1" |
| 52 | + Height="28" |
| 53 | + CornerRadius="3" |
| 54 | + Text="{Binding SelectedBranch, Mode=TwoWay}" |
| 55 | + Watermark="{DynamicResource Text.AddWorktree.Name.Placeholder}" |
| 56 | + IsEnabled="{Binding CreateNewBranch, Mode=OneWay}" |
| 57 | + IsVisible="{Binding CreateNewBranch, Mode=OneWay}"/> |
51 | 58 | <ComboBox Grid.Row="2" Grid.Column="1" |
52 | 59 | Height="28" Padding="8,0" |
53 | 60 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
54 | 61 | ItemsSource="{Binding LocalBranches}" |
55 | 62 | SelectedItem="{Binding SelectedBranch, Mode=TwoWay}" |
56 | | - IsEnabled="{Binding UseExistingBranch, Mode=OneWay}" |
57 | | - IsVisible="{Binding UseExistingBranch, Mode=OneWay}"> |
| 63 | + IsEnabled="{Binding !CreateNewBranch, Mode=OneWay}" |
| 64 | + IsVisible="{Binding !CreateNewBranch, Mode=OneWay}"> |
58 | 65 | <ComboBox.ItemTemplate> |
59 | 66 | <DataTemplate> |
60 | 67 | <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
|
63 | 70 | </StackPanel> |
64 | 71 | </DataTemplate> |
65 | 72 | </ComboBox.ItemTemplate> |
66 | | - </ComboBox> |
67 | | - <TextBox Grid.Row="2" Grid.Column="1" |
68 | | - Height="28" |
69 | | - CornerRadius="3" |
70 | | - Text="{Binding SelectedBranch, Mode=TwoWay}" |
71 | | - Watermark="{DynamicResource Text.AddWorktree.Name.Placeholder}" |
72 | | - IsEnabled="{Binding !UseExistingBranch, Mode=OneWay}" |
73 | | - IsVisible="{Binding !UseExistingBranch, Mode=OneWay}"/> |
| 73 | + </ComboBox> |
74 | 74 |
|
75 | 75 | <Border Grid.Row="3" Grid.Column="0" |
76 | 76 | Height="32" |
|
0 commit comments