Styling experiments
This commit is contained in:
parent
bfdbc347eb
commit
c2f710bf67
@ -14,5 +14,18 @@
|
|||||||
<FluentTheme DensityStyle="Compact" />
|
<FluentTheme DensityStyle="Compact" />
|
||||||
<materialIcons:MaterialIconStyles />
|
<materialIcons:MaterialIconStyles />
|
||||||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
|
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
</Application.Styles>
|
</Application.Styles>
|
||||||
</Application>
|
</Application>
|
@ -7,13 +7,16 @@
|
|||||||
x:Class="StarsAssistant.Views.BuColView"
|
x:Class="StarsAssistant.Views.BuColView"
|
||||||
x:DataType="vm:BuColViewModel">
|
x:DataType="vm:BuColViewModel">
|
||||||
|
|
||||||
|
|
||||||
<DataGrid x:Name="PlanetsGrid"
|
<DataGrid x:Name="PlanetsGrid"
|
||||||
ItemsSource="{Binding PlayerPlanets}"
|
ItemsSource="{Binding PlayerPlanets}"
|
||||||
SelectedItem="{Binding SelectedPlanet}"
|
SelectedItem="{Binding SelectedPlanet}"
|
||||||
GridLinesVisibility="All"
|
GridLinesVisibility="All"
|
||||||
FrozenColumnCount="1"
|
FrozenColumnCount="1"
|
||||||
BorderThickness="1" BorderBrush="Gray">
|
ColumnWidth="Auto"
|
||||||
|
RowHeight="24" FontSize="12"
|
||||||
|
BorderThickness="1" BorderBrush="Gray"
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTextColumn Header="Planet" Binding="{Binding Name}" />
|
<DataGridTextColumn Header="Planet" Binding="{Binding Name}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user