move text setter to textblock handler from base

This commit is contained in:
bluepilledgreat 2025-01-21 22:53:41 +00:00
parent a080c964eb
commit 5800e5b91c

View File

@ -844,8 +844,6 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
{
HandleXmlElement_FrameworkElement(dialog, textBlock, xmlElement);
textBlock.Text = GetTranslatedText(xmlElement.Attribute("Text")?.Value);
ApplyBrush_UIElement(dialog, textBlock, "Foreground", TextBlock.ForegroundProperty, xmlElement);
ApplyBrush_UIElement(dialog, textBlock, "Background", TextBlock.BackgroundProperty, xmlElement);
@ -888,6 +886,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
var textBlock = new TextBlock();
HandleXmlElement_TextBlock_Base(dialog, textBlock, xmlElement);
textBlock.Text = GetTranslatedText(xmlElement.Attribute("Text")?.Value);
return textBlock;
}