first full rendering sample of pop% cap with styling
This commit is contained in:
26
Stars Assistant/Assets/DataGridStyles.axaml
Normal file
26
Stars Assistant/Assets/DataGridStyles.axaml
Normal 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>
|
@ -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>
|
Reference in New Issue
Block a user