forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue28419.cs
More file actions
28 lines (24 loc) · 808 Bytes
/
Issue28419.cs
File metadata and controls
28 lines (24 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Maui.Controls.Sample.Issues;
[Issue(IssueTracker.Github, 28419, "SearchBar focus/unfocus do not fire on Windows", PlatformAffected.UWP)]
public class Issue28419 : ContentPage
{
public Issue28419()
{
var label = new Label();
var searchBar = new SearchBar { Placeholder = "SearchBar", AutomationId = "SearchBar" };
var entry = new Entry { Placeholder = "Entry", AutomationId = "Entry" };
searchBar.Focused += (sender, e) =>
{
label.Text = "SearchBar Focused";
};
searchBar.Unfocused += (sender, e) =>
{
label.Text = "SearchBar Unfocused";
};
Content = new VerticalStackLayout
{
Spacing = 10,
Children = { label, searchBar, entry }
};
}
}