Skip to content

Fix FontSize reference #1413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nice3point
Copy link
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.

1 participant