Skip to content

[Windows] SearchHandler.Focused and Unfocused event never fires #27551

@LogishaSelvarajSF4525

Description

@LogishaSelvarajSF4525

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

  1. Run the application on Windows. SearchHandlerIssue.zip

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-searchbarSearchBar controlpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions