Skip to content

Commit 5318789

Browse files
committed
Fix typography default style
1 parent c6adc9a commit 5318789

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Wpf.Ui/Controls/TextBlock/TextBlock.cs

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public class TextBlock : System.Windows.Controls.TextBlock
3939
)
4040
);
4141

42+
public TextBlock()
43+
{
44+
var defaultFontTypography = (FontTypography)FontTypographyProperty.DefaultMetadata.DefaultValue;
45+
SetResourceReference(StyleProperty, defaultFontTypography.ToResourceValue());
46+
}
47+
4248
/// <summary>
4349
/// Gets or sets the <see cref="FontTypography"/> of the text.
4450
/// </summary>

0 commit comments

Comments
 (0)