A widget that renders a single string, wrapping at region width. More...
Public Member Functions | |
| void | Render (IRenderContext ctx) |
| Render this widget into the provided context.The context carries the allocated region, theme, and color profile. Implementations MUST NOT write outside ctx.Region. | |
| TextBlock () | |
| Object-initializer constructor. | |
| TextBlock (string text, Style? style=null) | |
| Positional constructor for inline usage. | |
Properties | |
| SizeConstraint | Height = SizeConstraint.Auto [get] |
| Height constraint used by the layout engine. | |
| Style | Style = Style.Default [get] |
| Visual style applied to the rendered text. Inherits Theme.BaseStyle when no properties are set. | |
| string | Text = "" [get] |
| The text content to display, wrapped at the region width. | |
| SizeConstraint | Width = SizeConstraint.Auto [get] |
| Width constraint used by the layout engine. | |
A widget that renders a single string, wrapping at region width.
Inherits style from the active theme's BaseStyle when widget style has no properties set.