Skip to content

Commit

Permalink
move text setter to textblock handler from base
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Jan 21, 2025
1 parent a080c96 commit 5800e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,6 @@ private static void HandleXmlElement_TextBlock_Base(CustomDialog dialog, TextBlo
{
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);
Expand Down Expand Up @@ -888,6 +886,8 @@ private static UIElement HandleXmlElement_TextBlock(CustomDialog dialog, XElemen
var textBlock = new TextBlock();
HandleXmlElement_TextBlock_Base(dialog, textBlock, xmlElement);

textBlock.Text = GetTranslatedText(xmlElement.Attribute("Text")?.Value);

return textBlock;
}

Expand Down

0 comments on commit 5800e5b

Please sign in to comment.