Enable AppBarButton label font size customization - #11660
Open
Rashmi Thakur (rashmi-thakurr) wants to merge 1 commit into
Open
Enable AppBarButton label font size customization#11660Rashmi Thakur (rashmi-thakurr) wants to merge 1 commit into
Rashmi Thakur (rashmi-thakurr) wants to merge 1 commit into
Conversation
Add an AppBarButtonLabelFontSize lightweight resource to the standard and optimized styles, and cover overriding it in the existing common styles API test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Rashmi Thakur (rashmi-thakurr)
marked this pull request as ready for review
August 26, 2026 14:32
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sandeep Kumar Das (Sandeep-622)
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #9328.
Adds an
AppBarButtonLabelFontSizelightweight styling resource so applications can customize the AppBarButton label font size without copying and replacing the complete control template.The default value remains
12, preserving the existing appearance.Changes
AppBarButtonLabelFontSizeto the Default, Light, and High Contrast theme dictionaries.VerifyAppBarButtonLightweightStylingto verify that an overridden font size is applied to the rendered label.Validation
Microsoft.UI.Xaml.Controls.vcxprojsuccessfully.MUXControlsTestApp.csprojsuccessfully.VerifyAppBarButtonLightweightStyling:18is applied to the renderedTextLabel.Visual impact
There is no default visual change. The AppBarButton label remains at
12unless an application overridesAppBarButtonLabelFontSize.