diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index de9e364..87a1501 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -549,7 +549,9 @@ namespace Bloxstrap.UI.Elements.Bootstrapper else if (foregroundBrush is string) textBlock.SetResourceReference(TextBlock.ForegroundProperty, foregroundBrush); - textBlock.FontSize = ParseXmlAttribute(xmlElement, "FontSize", 12); + var fontSize = ParseXmlAttributeNullable(xmlElement, "FontSize"); + if (fontSize is double) + textBlock.FontSize = (double)fontSize; textBlock.FontWeight = GetFontWeightFromXElement(xmlElement); textBlock.FontStyle = GetFontStyleFromXElement(xmlElement);