Styling measures
This commit is contained in:
29
AdventureWorks.MAUI/Resources/Styles/AppStyles.xaml
Normal file
29
AdventureWorks.MAUI/Resources/Styles/AppStyles.xaml
Normal 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>
|
||||
Reference in New Issue
Block a user