-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS/MacCatalyst] Fix SearchBar TextChanged event not working issue (#…
…5462) * Fix SearchBar TextChanged event not working on iOS/Catalyst * Removed SetupDefaults Co-authored-by: Rui Marinho <[email protected]>
- Loading branch information
1 parent
2288eea
commit 43547cb
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
src/Controls/samples/Controls.Sample/Pages/Controls/SearchBarPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
namespace Maui.Controls.Sample.Pages | ||
using System.Diagnostics; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample.Pages | ||
{ | ||
public partial class SearchBarPage | ||
{ | ||
public SearchBarPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
void OnSearchBarTextChanged(object sender, TextChangedEventArgs args) | ||
{ | ||
var text = ((SearchBar)sender).Text; | ||
Debug.WriteLine($"SearchBar Text changed: {text}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters