mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add font properties to control
This commit is contained in:
parent
eec3f3251a
commit
97ff46d3f3
@ -27,7 +27,10 @@
|
|||||||
"BorderThickness": "Thickness",
|
"BorderThickness": "Thickness",
|
||||||
"Foreground": "Brush",
|
"Foreground": "Brush",
|
||||||
"Background": "Brush",
|
"Background": "Brush",
|
||||||
"BorderBrush": "Brush"
|
"BorderBrush": "Brush",
|
||||||
|
"FontSize": "double",
|
||||||
|
"FontWeight": "FontWeight",
|
||||||
|
"FontStyle": "FontStyle"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"BloxstrapCustomBootstrapper": {
|
"BloxstrapCustomBootstrapper": {
|
||||||
|
@ -610,6 +610,12 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
ApplyBrush_UIElement(dialog, uiElement, "Background", Control.BackgroundProperty, xmlElement);
|
ApplyBrush_UIElement(dialog, uiElement, "Background", Control.BackgroundProperty, xmlElement);
|
||||||
|
|
||||||
ApplyBrush_UIElement(dialog, uiElement, "BorderBrush", Control.BorderBrushProperty, xmlElement);
|
ApplyBrush_UIElement(dialog, uiElement, "BorderBrush", Control.BorderBrushProperty, xmlElement);
|
||||||
|
|
||||||
|
var fontSize = ParseXmlAttributeNullable<double>(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)
|
private static UIElement HandleXmlElement_BloxstrapCustomBootstrapper(CustomDialog dialog, XElement xmlElement)
|
||||||
|
Loading…
Reference in New Issue
Block a user