|
24 | 24 | HorizontalAlignment="Right" VerticalAlignment="Center" |
25 | 25 | Margin="0,0,8,0" |
26 | 26 | Text="{DynamicResource Text.Push.Local}"/> |
27 | | - <ComboBox Grid.Row="0" Grid.Column="1" |
28 | | - Height="28" Padding="8,0" |
29 | | - VerticalAlignment="Center" HorizontalAlignment="Stretch" |
30 | | - ItemsSource="{Binding LocalBranches}" |
31 | | - SelectedItem="{Binding SelectedLocalBranch, Mode=TwoWay}" |
32 | | - IsTextSearchEnabled="True" |
33 | | - TextSearch.TextBinding="{Binding Name, DataType=m:Branch}" |
34 | | - IsEnabled="{Binding !HasSpecifiedLocalBranch}"> |
35 | | - <ComboBox.ItemTemplate> |
36 | | - <DataTemplate x:DataType="{x:Type m:Branch}"> |
37 | | - <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
38 | | - <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}"/> |
39 | | - <TextBlock Text="{Binding Name}"/> |
40 | | - </StackPanel> |
41 | | - </DataTemplate> |
42 | | - </ComboBox.ItemTemplate> |
43 | | - </ComboBox> |
| 27 | + <v:BranchSelector Grid.Row="0" Grid.Column="1" |
| 28 | + Height="28" |
| 29 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 30 | + Branches="{Binding LocalBranches}" |
| 31 | + SelectedBranch="{Binding SelectedLocalBranch, Mode=TwoWay}" |
| 32 | + IsEnabled="{Binding !HasSpecifiedLocalBranch}"/> |
44 | 33 |
|
45 | 34 | <TextBlock Grid.Row="1" Grid.Column="0" |
46 | 35 | HorizontalAlignment="Right" VerticalAlignment="Center" |
|
67 | 56 | Text="{DynamicResource Text.Push.To}"/> |
68 | 57 | <Grid Grid.Row="2" Grid.Column="1" ColumnDefinitions="*,Auto"> |
69 | 58 | <v:BranchSelector Grid.Column="0" |
70 | | - Height="28" Padding="8,0" |
| 59 | + Height="28" |
71 | 60 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
72 | 61 | Branches="{Binding RemoteBranches, Mode=OneWay}" |
73 | 62 | SelectedBranch="{Binding SelectedRemoteBranch, Mode=TwoWay}" |
|
0 commit comments