[Windows] SearchHandler.Focused and Unfocused event never fires #27551
Labels
area-controls-searchbar
SearchBar control
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
In a .NET MAUI Shell application running on the Windows platform, the Focused and Unfocused events for Shell.SearchHandler do not trigger when the search handler gains or loses focus.
In android output,
Screen.Recording.2025-02-04.at.3.17.31.PM.mov
In windows output,
Screen.Recording.2025-02-04.150951.mp4
Steps to Reproduce
Run the application on Windows. SearchHandlerIssue.zip
Click inside the search handler to give it focus, then click outside to remove focus.
Expected Behavior
When the SearchHandler gains focus (e.g., the user clicks inside the search box), the Focused event should fire.
The focusedLabel should update to display "Focused: True".
Similarly, when the search handler loses focus, the Unfocused event should fire, updating unfocusedLabel to "Unfocused: True".
Actual Behavior
On Windows, the Focused event does not fire when interacting with the SearchHandler.
As a result, the focusedLabel remains unchanged ("Focused: False").
The Unfocused event behavior is inconsistent; it doesn't trigger as expected.
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: