-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fluent Button FontSize is ignored #4353
Comments
works fine to me. Do you use some non-standard font? |
My bad, just noticed the issue was because of this Style: |
Hey can we reopen this issue. I believe a standard control should overwrite a global style. The problem is, the textblock in the button's content control is isolated from the button itself, so when setting a TextBlock global font style, the button gets locked into the same font no matter what its font property is set for the button. A quick workaround is to do add a template binding to the button.xaml TextBlock.FontSize in the content control. I feel this would benefit many users who define global default styles. |
<Button FontSize="1" Height="30" Width="30" Content="Test" /> <Button FontSize="30" Height="30" Width="30" Content="Test"/>
Seems like FontSize is not changing the size of Content for Buttons when using the Fluent theme
The text was updated successfully, but these errors were encountered: