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 80
80
Height =" 28" Padding =" 8,0"
81
81
VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
82
82
ItemsSource =" {Binding RemoteBranches}"
83
+ IsTextSearchEnabled =" True"
83
84
SelectedItem =" {Binding SelectedTrackingBranch, Mode=TwoWay}"
84
85
IsVisible =" {Binding SetTrackingBranch, Mode=OneWay}" >
85
86
<ComboBox .ItemTemplate>
Original file line number Diff line number Diff line change 1
1
using System ;
2
+
2
3
using Avalonia . Controls ;
3
4
using Avalonia . Interactivity ;
4
5
using Avalonia . Platform . Storage ;
Original file line number Diff line number Diff line change 46
46
Margin =" 0,0,8,0"
47
47
Text =" {DynamicResource Text.Pull.Branch}" />
48
48
<ComboBox Grid.Row=" 1" Grid.Column=" 1"
49
+ x : Name =" RemoteBranchesComboBox"
49
50
Height =" 28" Padding =" 8,0"
50
51
VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
51
52
ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 1
1
using Avalonia . Controls ;
2
+ using Avalonia . Controls . Primitives ;
3
+ using Avalonia . Data ;
2
4
3
5
namespace SourceGit . Views
4
6
{
@@ -7,6 +9,7 @@ public partial class Pull : UserControl
7
9
public Pull ( )
8
10
{
9
11
InitializeComponent ( ) ;
12
+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
10
13
}
11
14
}
12
15
}
Original file line number Diff line number Diff line change 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"
21
22
Height =" 28" Padding =" 8,0"
22
23
VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
23
24
ItemsSource =" {Binding LocalBranches}"
58
59
Margin =" 0,0,8,0"
59
60
Text =" {DynamicResource Text.Push.To}" />
60
61
<ComboBox Grid.Row=" 2" Grid.Column=" 1"
62
+ x : Name =" RemoteBranchesComboBox"
61
63
Height =" 28" Padding =" 8,0"
62
64
VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
63
65
ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 1
1
using Avalonia . Controls ;
2
+ using Avalonia . Controls . Primitives ;
3
+ using Avalonia . Data ;
2
4
3
5
namespace SourceGit . Views
4
6
{
@@ -7,6 +9,8 @@ public partial class Push : UserControl
7
9
public Push ( )
8
10
{
9
11
InitializeComponent ( ) ;
12
+ TextSearch . SetTextBinding ( LocalBranchesComboBox , new Binding ( "Name" ) ) ;
13
+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
10
14
}
11
15
}
12
16
}
Original file line number Diff line number Diff line change 26
26
Margin =" 0,0,8,0"
27
27
Text =" {DynamicResource Text.SetUpstream.Upstream}" />
28
28
<ComboBox Grid.Row=" 1" Grid.Column=" 1"
29
+ x : Name =" RemoteBranchesComboBox"
29
30
Height =" 28" Padding =" 8,0"
30
31
VerticalAlignment =" Center" HorizontalAlignment =" Stretch"
31
32
ItemsSource =" {Binding RemoteBranches}"
Original file line number Diff line number Diff line change 1
1
using Avalonia . Controls ;
2
+ using Avalonia . Controls . Primitives ;
3
+ using Avalonia . Data ;
2
4
3
5
namespace SourceGit . Views
4
6
{
@@ -7,6 +9,7 @@ public partial class SetUpstream : UserControl
7
9
public SetUpstream ( )
8
10
{
9
11
InitializeComponent ( ) ;
12
+ TextSearch . SetTextBinding ( RemoteBranchesComboBox , new Binding ( "Name" ) ) ;
10
13
}
11
14
}
12
15
}
You can’t perform that action at this time.
0 commit comments