Skip to content

Commit

Permalink
Fix typography default style (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point authored Feb 16, 2025
1 parent c6adc9a commit 414992f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Wpf.Ui/Controls/TextBlock/TextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public class TextBlock : System.Windows.Controls.TextBlock
)
);

public TextBlock()
{
var defaultFontTypography = (FontTypography)FontTypographyProperty.DefaultMetadata.DefaultValue;
SetResourceReference(StyleProperty, defaultFontTypography.ToResourceValue());
}

/// <summary>
/// Gets or sets the <see cref="FontTypography"/> of the text.
/// </summary>
Expand Down

0 comments on commit 414992f

Please sign in to comment.