File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Files.App/UserControls Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7676 <AutoSuggestBox
7777 x:Name=" SearchRegion"
7878 BorderBrush=" {ThemeResource ControlElevationBorderBrush}"
79- GotFocus=" {x:Bind SearchBoxViewModel. SearchRegion_GotFocus} "
79+ GotFocus=" SearchRegion_GotFocus"
8080 ItemTemplate=" {StaticResource SuggestionTemplate}"
8181 ItemsSource=" {x:Bind SearchBoxViewModel.Suggestions, Mode=OneWay}"
8282 KeyDown=" SearchRegion_KeyDown"
Original file line number Diff line number Diff line change 11// Copyright (c) Files Community
22// Licensed under the MIT License.
33
4- using Files . App . ViewModels ;
54using Microsoft . UI . Xaml ;
65using Microsoft . UI . Xaml . Controls ;
76using Microsoft . UI . Xaml . Input ;
@@ -21,6 +20,9 @@ public SearchBoxViewModel SearchBoxViewModel
2120
2221 public SearchBox ( ) => InitializeComponent ( ) ;
2322
23+ private void SearchRegion_GotFocus ( object sender , RoutedEventArgs e )
24+ => SearchBoxViewModel . SearchRegion_GotFocus ( sender , e ) ;
25+
2426 private void SearchRegion_TextChanged ( AutoSuggestBox sender , AutoSuggestBoxTextChangedEventArgs e )
2527 => SearchBoxViewModel . SearchRegion_TextChanged ( sender , e ) ;
2628
You can’t perform that action at this time.
0 commit comments