File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/Files.App/UserControls Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 7676 <AutoSuggestBox
7777 x:Name=" SearchRegion"
7878 BorderBrush=" {ThemeResource ControlElevationBorderBrush}"
79- GotFocus=" SearchRegion_GotFocus"
79+ GotFocus=" {x:Bind SearchBoxViewModel. 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 ;
45using Microsoft . UI . Xaml ;
56using Microsoft . UI . Xaml . Controls ;
67using Microsoft . UI . Xaml . Input ;
@@ -20,9 +21,6 @@ public SearchBoxViewModel SearchBoxViewModel
2021
2122 public SearchBox ( ) => InitializeComponent ( ) ;
2223
23- private void SearchRegion_GotFocus ( object sender , RoutedEventArgs e )
24- => SearchBoxViewModel . SearchRegion_GotFocus ( sender , e ) ;
25-
2624 private void SearchRegion_TextChanged ( AutoSuggestBox sender , AutoSuggestBoxTextChangedEventArgs e )
2725 => SearchBoxViewModel . SearchRegion_TextChanged ( sender , e ) ;
2826
You can’t perform that action at this time.
0 commit comments