Skip to main content

MarkdownAlertBlock Class

Definition

Assembly:Avalonia.Controls.Markdown
Package:Avalonia.Controls.Markdown

A Avalonia.Controls.Documents.Section that represents a GitHub-style alert block (> [!NOTE]). Carries the alert kind ("Note", "Warning", ...) as a typed property so it survives element realization and is authorable through the FlowDocument API; the "alertBlock" + lowercased kind CSS classes remain the styling surface.

public class MarkdownAlertBlock

Inheritance: Section -> MarkdownAlertBlock

Constructors

NameDescription
MarkdownAlertBlockNo summary available.

MarkdownAlertBlock Constructor

public MarkdownAlertBlock()

Properties

NameDescription
AlertKindGets or sets the alert kind in title case ("Note", "Warning", "Tip", "Important", "Caution").

AlertKind Property

Gets or sets the alert kind in title case ("Note", "Warning", "Tip", "Important", "Caution").

public string AlertKind { get; set; }

Fields

AlertKindProperty Field

Defines the Avalonia.Controls.Documents.MarkdownAlertBlock.AlertKind property.

public Avalonia.StyledProperty<string> AlertKindProperty