Skip to content

Use Themed Context menus and remove custom FontSize converters - #7179

Merged
donnie-msft merged 4 commits into
devfrom
dev-donnie-msft-textboxStyles
Mar 3, 2026
Merged

donnie-msft merged 4 commits into
devfrom
dev-donnie-msft-textboxStyles

Conversation

@donnie-msft

@donnie-msft donnie-msft commented Feb 28, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#14704

Description

The issue is around the searchbox and the details pane package description context menu not being styled.
Searchbox is out of scope and I filed a ticket (linked in the issue) for them to fix styling.

  • This PR replaces all WPF TextBox controls that had selectable text with the VS Common Control TextBox to obtain the theming from those Fluent controls.

Description menu:

image

I found we had multiple other spots in PM UI that had this problem, for example:

Deprecation:

image

Package ID:

image

Other changes

  • Using the VS control with themed context menu introduced a new problem.
    Since we have FontSize scaling, it also sets scaling on the Context Menu, which is not what we want.

    image
    • Rather than copy the control template, I found an approach of resetting the FontSize for the context menu at the time it's opened.
  • TechDebt reduction: Removed all FontSize converters in favor of VS FontSize styles.

    image image

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests (Manually verified and added screenshots)
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@donnie-msft
donnie-msft requested a review from a team as a code owner February 28, 2026 03:14
@donnie-msft
donnie-msft requested review from jeffkl and zivkan February 28, 2026 03:14
@donnie-msft
donnie-msft merged commit 76b9210 into dev Mar 3, 2026
16 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-textboxStyles branch March 3, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Context menus to Copy text from PM UI are missing VS color theming

3 participants