File tree Expand file tree Collapse file tree 8 files changed +16
-0
lines changed
Expand file tree Collapse file tree 8 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 8080 Height =" 28" Padding =" 8,0"
8181 VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
8282 ItemsSource =" {Binding RemoteBranches}"
83+ IsTextSearchEnabled =" True"
8384 SelectedItem =" {Binding SelectedTrackingBranch, Mode=TwoWay}"
8485 IsVisible =" {Binding SetTrackingBranch, Mode=OneWay}" >
8586 <ComboBox .ItemTemplate>
Original file line number Diff line number Diff line change 11using System ;
2+
23using Avalonia . Controls ;
34using Avalonia . Interactivity ;
45using Avalonia . Platform . Storage ;
Original file line number Diff line number Diff line change 4646 Margin =" 0,0,8,0"
4747 Text =" {DynamicResource Text.Pull.Branch}" />
4848 <ComboBox Grid.Row=" 1" Grid.Column=" 1"
49+ x : Name =" RemoteBranchesComboBox"
4950 Height =" 28" Padding =" 8,0"
5051 VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
5152 ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 11using Avalonia . Controls ;
2+ using Avalonia . Controls . Primitives ;
3+ using Avalonia . Data ;
24
35namespace SourceGit . Views
46{
@@ -7,6 +9,7 @@ public partial class Pull : UserControl
79 public Pull ( )
810 {
911 InitializeComponent ( ) ;
12+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
1013 }
1114 }
1215}
Original file line number Diff line number Diff line change 1818 Margin =" 0,0,8,0"
1919 Text =" {DynamicResource Text.Push.Local}" />
2020 <ComboBox Grid.Row=" 0" Grid.Column=" 1"
21+ x : Name =" LocalBranchesComboBox"
2122 Height =" 28" Padding =" 8,0"
2223 VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
2324 ItemsSource =" {Binding LocalBranches}"
5859 Margin =" 0,0,8,0"
5960 Text =" {DynamicResource Text.Push.To}" />
6061 <ComboBox Grid.Row=" 2" Grid.Column=" 1"
62+ x : Name =" RemoteBranchesComboBox"
6163 Height =" 28" Padding =" 8,0"
6264 VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
6365 ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 11using Avalonia . Controls ;
2+ using Avalonia . Controls . Primitives ;
3+ using Avalonia . Data ;
24
35namespace SourceGit . Views
46{
@@ -7,6 +9,8 @@ public partial class Push : UserControl
79 public Push ( )
810 {
911 InitializeComponent ( ) ;
12+ TextSearch . SetTextBinding ( LocalBranchesComboBox , new Binding ( "Name" ) ) ;
13+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
1014 }
1115 }
1216}
Original file line number Diff line number Diff line change 2626 Margin =" 0,0,8,0"
2727 Text =" {DynamicResource Text.SetUpstream.Upstream}" />
2828 <ComboBox Grid.Row=" 1" Grid.Column=" 1"
29+ x : Name =" RemoteBranchesComboBox"
2930 Height =" 28" Padding =" 8,0"
3031 VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
3132 ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 11using Avalonia . Controls ;
2+ using Avalonia . Controls . Primitives ;
3+ using Avalonia . Data ;
24
35namespace SourceGit . Views
46{
@@ -7,6 +9,7 @@ public partial class SetUpstream : UserControl
79 public SetUpstream ( )
810 {
911 InitializeComponent ( ) ;
12+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
1013 }
1114 }
1215}
You can’t perform that action at this time.
0 commit comments