A lightweight text display control.
1 | public class SimpleText : FrameworkElement |
Attributes
Property | Description | Default Value | Remarks |
---|---|---|---|
Text | Text | ||
TextAlignment | Text Alignment | TextAlignment.Left | |
TextTrimming | Text truncation method | TextTrimming.None | |
TextWrapping | Text Wrapping | TextWrapping.NoWrap | |
Foreground | Font color | ||
FontFamily | Font | ||
FontSize | Font Size | ||
FontStretch | Font deformation method | ||
FontStyle | Font Style | ||
FontWeight | Font Weight |
Case
1 | <hc:SimpleText Text="Content"/> |