TextBlock class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.TextBlock
Modifiers: public
Summary¶
Represents a control that displays a block of text with support for customizable typography and appearance settings.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class TextBlock
class TextBlock
TextBlock <|-- TextBlock
Inherits from: TextBlock
Remarks¶
The TextBlock control extends the base Avalonia TextBlock by providing additional properties for font typography and appearance. It is typically used to display read-only text in user interfaces, with options to adjust visual style according to application design requirements.
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| FontTypography | Gets or sets the font typography. |
| Appearance | Gets or sets the appearance. |
Fields¶
| Name | Summary |
|---|---|
| static FontTypographyProperty | Property for [FontTypography](# |
| static AppearanceProperty | Property for [Appearance](# |