Styling measures

This commit is contained in:
2025-08-17 10:04:20 +02:00
parent 6ad9cc1518
commit 244e2fd197
3 changed files with 41 additions and 12 deletions

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xaml-comp compile="true" ?>
<ResourceDictionary
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<x:String x:Key="ApplicationTitle">
Adventure Works
</x:String>
<x:Int32 x:Key="DefaultSpacingForGrid">10</x:Int32>
<Style TargetType="Grid"
x:Key="Grid.Page">
<Setter Property="ColumnSpacing" Value="{StaticResource DefaultSpacingForGrid}" />
<Setter Property="RowSpacing" Value="{StaticResource DefaultSpacingForGrid}" />
<Setter Property="Margin" Value="{StaticResource DefaultSpacingForGrid}" />
<Setter Property="Padding" Value="{StaticResource DefaultSpacingForGrid}" />
</Style>
<Style TargetType="Label">
<Setter Property="VerticalTextAlignment" Value="Center" />
</Style>
<Style TargetType="HorizontalStackLayout">
<Setter Property="Spacing" Value="5" />
</Style>
<Style TargetType="Button">
<Setter Property="WidthRequest" Value="100"/>
<Setter Property="BackgroundColor" Value="Blue"/>
<Setter Property="TextColor" Value="White"/>
</Style>
</ResourceDictionary>