Skip to content

Commit 0518333

Browse files
committed
Revert "Code Quality: Bound event to local function"
This reverts commit b13937d.
1 parent 59578de commit 0518333

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Files.App/UserControls/SearchBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
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"

src/Files.App/UserControls/SearchBox.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Files Community
22
// Licensed under the MIT License.
33

4+
using Files.App.ViewModels;
45
using Microsoft.UI.Xaml;
56
using Microsoft.UI.Xaml.Controls;
67
using 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

0 commit comments

Comments
 (0)