diff --git a/Bloxstrap/Resources/CustomBootstrapperSchema.json b/Bloxstrap/Resources/CustomBootstrapperSchema.json index 3a82e1a..44e5a19 100644 --- a/Bloxstrap/Resources/CustomBootstrapperSchema.json +++ b/Bloxstrap/Resources/CustomBootstrapperSchema.json @@ -27,7 +27,10 @@ "BorderThickness": "Thickness", "Foreground": "Brush", "Background": "Brush", - "BorderBrush": "Brush" + "BorderBrush": "Brush", + "FontSize": "double", + "FontWeight": "FontWeight", + "FontStyle": "FontStyle" } }, "BloxstrapCustomBootstrapper": { diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index 50d6283..e1c4f82 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -610,6 +610,12 @@ namespace Bloxstrap.UI.Elements.Bootstrapper ApplyBrush_UIElement(dialog, uiElement, "Background", Control.BackgroundProperty, xmlElement); ApplyBrush_UIElement(dialog, uiElement, "BorderBrush", Control.BorderBrushProperty, xmlElement); + + var fontSize = ParseXmlAttributeNullable(xmlElement, "FontSize"); + if (fontSize is double) + uiElement.FontSize = (double)fontSize; + uiElement.FontWeight = GetFontWeightFromXElement(xmlElement); + uiElement.FontStyle = GetFontStyleFromXElement(xmlElement); } private static UIElement HandleXmlElement_BloxstrapCustomBootstrapper(CustomDialog dialog, XElement xmlElement)