From 23d8bb1aaa37bf888ddb7f6ed90cdbcbc6b18022 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:34:51 +0100 Subject: [PATCH] add stretch & stretchdirection to images --- Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index 9031584..96f65dd 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -501,6 +501,9 @@ namespace Bloxstrap.UI.Elements.Bootstrapper var image = new Image(); HandleXmlElement_FrameworkElement(dialog, image, xmlElement); + image.Stretch = ParseXmlAttribute(xmlElement, "Stretch", Stretch.Uniform); + image.StretchDirection = ParseXmlAttribute(xmlElement, "StretchDirection", StretchDirection.Both); + string sourcePath = GetXmlAttribute(xmlElement, "Source"); sourcePath = sourcePath.Replace("theme://", $"{dialog.ThemeDir}\\");