File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/shared/GitHub/UI/Views Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 48
48
Margin =" 20,0,20,10"
49
49
MaxHeight =" 200"
50
50
Background =" Transparent"
51
- AutoScrollToSelectedItem =" True" >
51
+ AutoScrollToSelectedItem =" True"
52
+ DoubleTapped =" ListBox_OnDoubleTapped" >
52
53
<ListBox .ItemTemplate>
53
54
<DataTemplate DataType =" vm:AccountViewModel" >
54
55
<DockPanel LastChildFill =" True" >
Original file line number Diff line number Diff line change 1
1
using Avalonia ;
2
2
using Avalonia . Controls ;
3
+ using Avalonia . Input ;
3
4
using Avalonia . Markup . Xaml ;
5
+ using GitHub . UI . ViewModels ;
4
6
5
7
namespace GitHub . UI . Views ;
6
8
@@ -15,4 +17,12 @@ private void InitializeComponent()
15
17
{
16
18
AvaloniaXamlLoader . Load ( this ) ;
17
19
}
20
+
21
+ private void ListBox_OnDoubleTapped ( object sender , TappedEventArgs e )
22
+ {
23
+ if ( DataContext is SelectAccountViewModel { SelectedAccount : not null } vm )
24
+ {
25
+ vm . ContinueCommand . Execute ( null ) ;
26
+ }
27
+ }
18
28
}
You can’t perform that action at this time.
0 commit comments