-
Notifications
You must be signed in to change notification settings - Fork 26
How to customise style Headers
whistyun edited this page Dec 5, 2020
·
2 revisions
All Headers are created as CTextBlock which has 'Header*' class.
<!--
xmlns:ctxt="clr-namespace:ColorTextBlock.Avalonia;assembly=ColorTextBlock.Avalonia"
-->
<Style Selector="ctxt|CTextBlock.Heading1">
<Setter Property="FontSize" Value="15"/>
<Setter Property="Foreground" Value="Red"/>
</Style>
<Style Selector="ctxt|CTextBlock.Heading2">
<Setter Property="FontSize" Value="17"/>
<Setter Property="Foreground" Value="Blue"/>
</Style>
<Style Selector="ctxt|CTextBlock.Heading3">
<Setter Property="FontSize" Value="19"/>
<Setter Property="Foreground" Value="Green"/>
</Style>
<Style Selector="ctxt|CTextBlock.Heading4">
<Setter Property="FontSize" Value="21"/>
<Setter Property="Foreground" Value="Yellow"/>
</Style>
<Style Selector="ctxt|CTextBlock.Heading5">
<Setter Property="FontSize" Value="24"/>
<Setter Property="Foreground" Value="Magenta"/>
</Style>
<Style Selector="ctxt|CTextBlock.Heading6">
<Setter Property="FontSize" Value="27"/>
<Setter Property="Foreground" Value="Cyan"/>
</Style>
# Heading1
## Heading2
### Heading3
#### Heading4
##### Heading5
###### Heading6
- Background
- FontFamily
- FontSize
- FontStyle
- FontWeight
- Foreground
- TextAlignment