mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add stretch & stretchdirection to images
This commit is contained in:
parent
f74ca0552f
commit
23d8bb1aaa
@ -501,6 +501,9 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
var image = new Image();
|
var image = new Image();
|
||||||
HandleXmlElement_FrameworkElement(dialog, image, xmlElement);
|
HandleXmlElement_FrameworkElement(dialog, image, xmlElement);
|
||||||
|
|
||||||
|
image.Stretch = ParseXmlAttribute<Stretch>(xmlElement, "Stretch", Stretch.Uniform);
|
||||||
|
image.StretchDirection = ParseXmlAttribute<StretchDirection>(xmlElement, "StretchDirection", StretchDirection.Both);
|
||||||
|
|
||||||
string sourcePath = GetXmlAttribute(xmlElement, "Source");
|
string sourcePath = GetXmlAttribute(xmlElement, "Source");
|
||||||
sourcePath = sourcePath.Replace("theme://", $"{dialog.ThemeDir}\\");
|
sourcePath = sourcePath.Replace("theme://", $"{dialog.ThemeDir}\\");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user