Skip to content
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

Replacing FontSize property #824

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

Nice3point
Copy link
Contributor

@Nice3point Nice3point commented Nov 17, 2023

Moving the FontSize property from codebehind to style

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?

When a UI library is loaded as a plugin in another program (.dll project, instead of a separate single .exe), OverrideMetadata breaks text sizes in the whole application, because it overrides the text size of the whole domain. I suggest not to override DependencyProperty, but to set the value in the style of

As an example, you can run https://github.com/snoopwpf/snoopwpf and notice the increased text size after calling OverrideMetadata, without it this is not observed

@pomianowski pomianowski merged commit 9bcd1ca into lepoco:development Nov 17, 2023
2 checks passed
@Nice3point Nice3point deleted the development_textsize branch November 17, 2023 10:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants