|
18 | 18 | Margin="0,0,8,0" |
19 | 19 | Text="{DynamicResource Text.Push.Local}"/> |
20 | 20 | <ComboBox Grid.Row="0" Grid.Column="1" |
21 | | - x:Name="LocalBranchesComboBox" |
22 | 21 | Height="28" Padding="8,0" |
23 | 22 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
24 | 23 | ItemsSource="{Binding LocalBranches}" |
25 | 24 | SelectedItem="{Binding SelectedLocalBranch, Mode=TwoWay}" |
26 | 25 | IsTextSearchEnabled="True" |
| 26 | + TextSearch.TextBinding="{Binding Name, DataType=m:Branch}" |
27 | 27 | IsEnabled="{Binding !HasSpecifiedLocalBranch}"> |
28 | 28 | <ComboBox.ItemTemplate> |
29 | 29 | <DataTemplate x:DataType="{x:Type m:Branch}"> |
|
58 | 58 | HorizontalAlignment="Right" VerticalAlignment="Center" |
59 | 59 | Margin="0,0,8,0" |
60 | 60 | Text="{DynamicResource Text.Push.To}"/> |
61 | | - <ComboBox Grid.Row="2" Grid.Column="1" |
62 | | - x:Name="RemoteBranchesComboBox" |
63 | | - Height="28" Padding="8,0" |
64 | | - VerticalAlignment="Center" HorizontalAlignment="Stretch" |
65 | | - ItemsSource="{Binding RemoteBranches}" |
66 | | - IsTextSearchEnabled="True" |
67 | | - SelectedItem="{Binding SelectedRemoteBranch, Mode=TwoWay}"> |
68 | | - <ComboBox.ItemTemplate> |
69 | | - <DataTemplate x:DataType="{x:Type m:Branch}"> |
70 | | - <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
71 | | - <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}"/> |
72 | | - <TextBlock Text="{Binding Name}" VerticalAlignment="Center"/> |
73 | | - <Border Height="14" |
74 | | - CornerRadius="7" |
75 | | - Margin="4,0,0,0" Padding="6,0" |
76 | | - VerticalAlignment="Center" |
77 | | - Background="Green" |
78 | | - IsVisible="{Binding Head, Converter={x:Static StringConverters.IsNullOrEmpty}}"> |
79 | | - <TextBlock Text="{DynamicResource Text.Push.New}" FontSize="9" FontFamily="{DynamicResource Fonts.Monospace}" Foreground="White" VerticalAlignment="Center"/> |
80 | | - </Border> |
81 | | - </StackPanel> |
82 | | - </DataTemplate> |
83 | | - </ComboBox.ItemTemplate> |
84 | | - </ComboBox> |
| 61 | + <Grid Grid.Row="2" Grid.Column="1" ColumnDefinitions="*,Auto"> |
| 62 | + <ComboBox Grid.Column="0" |
| 63 | + Height="28" Padding="8,0" |
| 64 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 65 | + ItemsSource="{Binding RemoteBranches}" |
| 66 | + IsTextSearchEnabled="True" |
| 67 | + TextSearch.TextBinding="{Binding Name, DataType=m:Branch}" |
| 68 | + SelectedItem="{Binding SelectedRemoteBranch, Mode=TwoWay}"> |
| 69 | + <ComboBox.ItemTemplate> |
| 70 | + <DataTemplate x:DataType="{x:Type m:Branch}"> |
| 71 | + <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
| 72 | + <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}"/> |
| 73 | + <TextBlock Text="{Binding Name}" VerticalAlignment="Center"/> |
| 74 | + <Border Height="14" |
| 75 | + CornerRadius="7" |
| 76 | + Margin="4,0,0,0" Padding="6,0" |
| 77 | + VerticalAlignment="Center" |
| 78 | + Background="Green" |
| 79 | + IsVisible="{Binding Head, Converter={x:Static StringConverters.IsNullOrEmpty}}"> |
| 80 | + <TextBlock Text="{DynamicResource Text.Push.New}" FontSize="9" FontFamily="{DynamicResource Fonts.Monospace}" Foreground="White" VerticalAlignment="Center"/> |
| 81 | + </Border> |
| 82 | + </StackPanel> |
| 83 | + </DataTemplate> |
| 84 | + </ComboBox.ItemTemplate> |
| 85 | + </ComboBox> |
| 86 | + |
| 87 | + <Button Grid.Column="1" |
| 88 | + Classes="icon_button" |
| 89 | + Width="26" Height="32" |
| 90 | + Click="OnPushToNewBranch" |
| 91 | + ToolTip.Tip="{DynamicResource Text.PushToNewBranch}"> |
| 92 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Branch.Add}"/> |
| 93 | + </Button> |
| 94 | + </Grid> |
85 | 95 |
|
86 | 96 | <CheckBox Grid.Row="3" Grid.Column="1" |
87 | 97 | Height="32" |
|
0 commit comments