Skip to content

[Windows] Fix SearchHandler FontSize, FontFamily, VerticalTextAlignment, and FontAttributes are not applied - #36700

Merged
kubaflo merged 7 commits into
dotnet:inflight/currentfrom
devanathan-vaithiyanathan:fix-36629
Jul 26, 2026
Merged

kubaflo merged 7 commits into
dotnet:inflight/currentfrom
devanathan-vaithiyanathan:fix-36629

Conversation

@devanathan-vaithiyanathan

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

On Windows, the following SearchHandler properties were silently ignored: FontSize, FontFamily, and FontAttributes.

Description of Changes:

  • AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont() extension method that delegates to UpdateFont(searchHandler.ToFont(), fontManager).
  • ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on initial SearchHandler attach, and added case branches for FontFamily, FontSize, and FontAttributes in the property-changed handler.

Description of Change

Issues Fixed

Fixes #36629

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac
Before After
Windows
Before.mp4
Windows
After.mp4

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36700

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36700"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jul 21, 2026
@devanathan-vaithiyanathan devanathan-vaithiyanathan added the community ✨ Community Contribution label Jul 21, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review July 22, 2026 14:28
Copilot AI review requested due to automatic review settings July 22, 2026 14:28
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@sheiksyedm

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes missing application of SearchHandler font-related properties on Windows by updating the WinUI AutoSuggestBox when a SearchHandler is attached and when relevant properties change, and adds a UI test page + screenshot test for regression coverage.

Changes:

  • Add a Windows AutoSuggestBox extension to update the SearchHandler font via IFontManager.
  • Apply SearchHandler font updates during initial attach and on FontFamily/FontSize/FontAttributes changes in ShellItemHandler (Windows).
  • Add HostApp repro page + UITest screenshot coverage for issue #36629.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue36629.cs Adds a screenshot-based UI regression test for the SearchHandler font/alignment scenario.
src/Controls/tests/TestCases.HostApp/Issues/Issue36629.cs Adds a HostApp Shell-based repro page configuring SearchHandler font/alignment properties.
src/Controls/src/Core/Platform/Windows/Extensions/AutoSuggestBoxExtensions.cs Adds UpdateSearchHandlerFont(...) to apply SearchHandler font settings to WinUI AutoSuggestBox.
src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs Applies font updates on SearchHandler attach and when font-related properties change.

Copilot AI review requested due to automatic review settings July 23, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment on lines +547 to +551
case nameof(SearchHandler.FontFamily):
case nameof(SearchHandler.FontSize):
case nameof(SearchHandler.FontAttributes):
autoSuggestBox.UpdateSearchHandlerFont(_currentSearchHandler, this.GetRequiredService<IFontManager>());
break;
Comment on lines +16 to +18
{
// Wait for the page to load
App.WaitForElement("ContentLabel36629");
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 23, 2026
@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Jul 23, 2026
@kubaflo
kubaflo changed the base branch from main to inflight/current July 26, 2026 19:38
@kubaflo
kubaflo merged commit 1846f9f into dotnet:inflight/current Jul 26, 2026
1 of 2 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR10 milestone Jul 26, 2026
kubaflo added a commit that referenced this pull request Jul 28, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Jul 29, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Aug 7, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Aug 12, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
LogishaSelvarajSF4525 added a commit to LogishaSelvarajSF4525/maui that referenced this pull request Aug 18, 2026
…tAlignment, and FontAttributes are not applied (dotnet#36700)"

Note : This revert changes for checking purpose, do not merge it.
LogishaSelvarajSF4525 added a commit to LogishaSelvarajSF4525/maui that referenced this pull request Aug 18, 2026
LogishaSelvarajSF4525 added a commit to LogishaSelvarajSF4525/maui that referenced this pull request Aug 19, 2026
…xtAlignment, and FontAttributes are not applied (dotnet#36700)"

This reverts commit 650464d.
@sheiksyedm sheiksyedm modified the milestones: .NET 10 SR10, .NET 10 SR11 Aug 26, 2026
kubaflo added a commit that referenced this pull request Aug 27, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 2, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 3, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 3, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 4, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 6, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 7, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 7, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 8, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 8, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 9, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Sep 9, 2026
…nt, and FontAttributes are not applied (#36700)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Issue Details
On Windows, the following SearchHandler properties were silently
ignored: FontSize, FontFamily, and FontAttributes.
 
### Description of Changes:
* AutoSuggestBoxExtensions.cs — Added UpdateSearchHandlerFont()
extension method that delegates to UpdateFont(searchHandler.ToFont(),
fontManager).
* ShellItemHandler.Windows.cs — Called UpdateSearchHandlerFont on
initial SearchHandler attach, and added case branches for FontFamily,
FontSize, and FontAttributes in the property-changed handler.

### Description of Change

<!-- Enter description of the fix in this section -->

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #36629 

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

**Tested the behavior in the following platforms.**
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac

| Before  | After  |
|---------|--------|
| **Windows**<br> <video
src="https://github.com/user-attachments/assets/16b6a291-7c63-4c08-a3b1-4d4f9e601806"
width="600" height="300"> | **Windows**<br> <video
src="https://github.com/user-attachments/assets/a16b4533-017e-46e7-bed3-69b434becb0a"
width="600" height="300"> |

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-win AI found a better alternative fix than the PR s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) shell-search-handler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] SearchHandler FontSize, FontFamily, VerticalTextAlignment, and FontAttributes are not applied

6 participants