mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
dont set fontsize if not set
This commit is contained in:
parent
1b44d6454b
commit
e136927f18
@ -549,7 +549,9 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
else if (foregroundBrush is string)
|
||||
textBlock.SetResourceReference(TextBlock.ForegroundProperty, foregroundBrush);
|
||||
|
||||
textBlock.FontSize = ParseXmlAttribute<double>(xmlElement, "FontSize", 12);
|
||||
var fontSize = ParseXmlAttributeNullable<double>(xmlElement, "FontSize");
|
||||
if (fontSize is double)
|
||||
textBlock.FontSize = (double)fontSize;
|
||||
textBlock.FontWeight = GetFontWeightFromXElement(xmlElement);
|
||||
textBlock.FontStyle = GetFontStyleFromXElement(xmlElement);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user