diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index bb90112..7335f22 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -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; }