mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Replaced all copyright symbols with (c) to improve cross-platform reading Added classes to XFX::Audio namespace Added and updated classes in XFX::Graphics namespace Updated event function signature Replaced const char* ToString() with const String& ToString()
27 lines
428 B
C++
27 lines
428 B
C++
#include <System/Windows/Controls/TextBlock.h>
|
|
#include <System/Windows/Media/SolidColorBrush.h>
|
|
|
|
namespace System
|
|
{
|
|
namespace Windows
|
|
{
|
|
namespace Controls
|
|
{
|
|
TextBlock::TextBlock()
|
|
: Foreground(new SolidColorBrush(Color::White)), Padding(0), Text(String::Empty)
|
|
{
|
|
}
|
|
|
|
TextBlock::~TextBlock()
|
|
{
|
|
delete Foreground;
|
|
}
|
|
|
|
const String& TextBlock::ToString() const
|
|
{
|
|
return Text;
|
|
}
|
|
}
|
|
}
|
|
}
|