Skip to content

Fixed the FontIcon markup extension #1026

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

Closed
wants to merge 2 commits into from

Conversation

m0lDaViA
Copy link
Contributor

@m0lDaViA m0lDaViA commented Mar 28, 2024

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?

So: I haven't watched the classes because I haven't had time lately. Luckily I have a few days.
That's why I now looked at the markup class.

Markup extensions in XAML require a default constructor with no parameters.
This is missing in the implementation because both constructors expect parameters.
And the most important:
Initializing the FontFamily property twice is not necessary and can lead to problems (which was probably the reason why the FontFamily was only recognized after the line was manually deleted and reinserted) especially if a user sets a different value to FontFamily hands over.

Issue Number: N/A

What is the new behavior?

Now the FontIcon class should work as expected.
Should fix #666 and #986
#163 is a bug inside the tilebar and to directly connected to the FontIcon class itself.

Other information

I would like to reafactor the code. Right now it's harder to follow up as it needs to be and the readability suffers greatly as a result. What do you say?

@m0lDaViA m0lDaViA requested a review from pomianowski as a code owner March 28, 2024 19:54
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request icons Fonts and icons updates dotnet labels Mar 28, 2024
@m0lDaViA m0lDaViA closed this Apr 7, 2024
@m0lDaViA m0lDaViA deleted the development branch April 22, 2024 10:58
@m0lDaViA m0lDaViA restored the development branch April 22, 2024 10:58
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
controls Changes to the appearance or logic of custom controls. dotnet icons Fonts and icons updates PR Pull request styles Topic is related to styles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant