first full rendering sample of pop% cap with styling

This commit is contained in:
2025-03-16 12:45:09 +01:00
parent 2c9ff99502
commit 7bb34a4b51
6 changed files with 112 additions and 42 deletions

View File

@ -0,0 +1,26 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<Style Selector="DataGridColumnHeader">
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="MinHeight" Value="20" />
</Style>
<Style Selector="DataGridCell">
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="MinHeight" Value="20" />
</Style>
<Style Selector="Border.Warning"><Setter Property="Background" Value="Khaki" /></Style>
<Style Selector="Border.Good"><Setter Property="Background" Value="PaleGreen" /></Style>
<Style Selector="Border.Bad"><Setter Property="Background" Value="LightCoral" /></Style>
<Style Selector="Border.Inactive"><Setter Property="Background" Value="LightGray" /></Style>
</Styles>

View File

@ -1,13 +0,0 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<Style Selector="DataGridCell.cool">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Background" Value="Red" />
</Style>
</Styles>