Skip to content

Fix FontSize reference#1413

Merged
pomianowski merged 1 commit intolepoco:mainfrom
Nice3point:fix/font-reference
May 24, 2025
Merged

Fix FontSize reference#1413
pomianowski merged 1 commit intolepoco:mainfrom
Nice3point:fix/font-reference

Conversation

@Nice3point
Copy link
Copy Markdown
Contributor

@Nice3point Nice3point commented Apr 13, 2025

Now when using FontIcon in a DLL application (not exe), because of the difference in the order of resource initialisation, the SetResourceReference call overwrites the user-defined value, and binds strictly on the resource value. The patch fixes this and initialises not as a reference but as a value

I think VisualParent check is also unnecessary because FrameworkPropertyMetadataOptions.Inherits is used.

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

rider64_xg54L01psh

What is the new behavior?

rider64_q9iogyHb2V

@Nice3point Nice3point requested a review from pomianowski as a code owner April 13, 2025 15:26
@github-actions github-actions Bot added controls Changes to the appearance or logic of custom controls. PR Pull request icons Fonts and icons updates dotnet release ⭐ top pull request Top pull request. labels Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet icons Fonts and icons updates PR Pull request release ⭐ top pull request Top pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants