We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6adc9a commit 5318789Copy full SHA for 5318789
src/Wpf.Ui/Controls/TextBlock/TextBlock.cs
@@ -39,6 +39,12 @@ public class TextBlock : System.Windows.Controls.TextBlock
39
)
40
);
41
42
+ public TextBlock()
43
+ {
44
+ var defaultFontTypography = (FontTypography)FontTypographyProperty.DefaultMetadata.DefaultValue;
45
+ SetResourceReference(StyleProperty, defaultFontTypography.ToResourceValue());
46
+ }
47
+
48
/// <summary>
49
/// Gets or sets the <see cref="FontTypography"/> of the text.
50
/// </summary>
0 commit comments