How would you justify text in Silverlight?
Posted
by PaulJ
on Stack Overflow
See other posts from Stack Overflow
or by PaulJ
Published on 2009-02-11T17:01:26Z
Indexed on
2010/06/01
17:53 UTC
Read the original article
Hit count: 583
Does anyone have any suggestions on how to justify read-only text (rendered into a TextBlock
) in Silverlight 2? WPF supports text justification by way of the TextAlignment
enumeration:
public enum TextAlignment
{
Left,
Right,
Center,
Justify // <--- Missing from Silverlight :(
}
However, Silverlight 2 only supports the following:
public enum TextAlignment
{
Center,
Left,
Right
}
Any ideas or suggestions gratefully received.
© Stack Overflow or respective owner