mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
move text setter to textblock handler from base
This commit is contained in:
parent
a080c964eb
commit
5800e5b91c
@ -844,8 +844,6 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
{
|
{
|
||||||
HandleXmlElement_FrameworkElement(dialog, textBlock, xmlElement);
|
HandleXmlElement_FrameworkElement(dialog, textBlock, xmlElement);
|
||||||
|
|
||||||
textBlock.Text = GetTranslatedText(xmlElement.Attribute("Text")?.Value);
|
|
||||||
|
|
||||||
ApplyBrush_UIElement(dialog, textBlock, "Foreground", TextBlock.ForegroundProperty, xmlElement);
|
ApplyBrush_UIElement(dialog, textBlock, "Foreground", TextBlock.ForegroundProperty, xmlElement);
|
||||||
|
|
||||||
ApplyBrush_UIElement(dialog, textBlock, "Background", TextBlock.BackgroundProperty, xmlElement);
|
ApplyBrush_UIElement(dialog, textBlock, "Background", TextBlock.BackgroundProperty, xmlElement);
|
||||||
@ -888,6 +886,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
var textBlock = new TextBlock();
|
var textBlock = new TextBlock();
|
||||||
HandleXmlElement_TextBlock_Base(dialog, textBlock, xmlElement);
|
HandleXmlElement_TextBlock_Base(dialog, textBlock, xmlElement);
|
||||||
|
|
||||||
|
textBlock.Text = GetTranslatedText(xmlElement.Attribute("Text")?.Value);
|
||||||
|
|
||||||
return textBlock;
|
return textBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user