Skip to content

How to customise style Blockquote

whistyun edited this page Dec 5, 2020 · 1 revision

Abstract

Blockquote are created as Border which has 'Blockquote' class.

Example

Style

<!--
    xmlns:ctxt="clr-namespace:ColorTextBlock.Avalonia;assembly=ColorTextBlock.Avalonia"
-->

<Style Selector="Border.Blockquote">
    <Setter Property="BorderBrush" Value="Red" />
    <Setter Property="Background" Value="Pink" />
    <Setter Property="BorderThickness" Value="4,12,8,16"/>
    <Setter Property="CornerRadius" Value="20"/>
</Style>

Markdown

> ## heading in blockquote
> some tex in blockquote
> * listitem1
> * listitem2

View

view