You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ex_CustomThemes.MainPage">
<VerticalStackLayout
Padding="30"
Spacing="25"
BackgroundColor="{DynamicResource PrimaryBackgroundColor}">
<Label
Text="My Custom Theme sample"
FontSize="40"
FontAttributes="Bold"
TextColor="{DynamicResource PrimaryForegroundColor}" />
<Label
Text="Just a subtitle"
FontSize="20"
FontAttributes="Italic"
TextColor="{DynamicResource SecondaryForegroundColor}" />
<Button
Text="A Button"
TextColor="{DynamicResource PrimaryForegroundColor}"
BackgroundColor="{DynamicResource SecondaryBackgroundColor}"/>
<Picker x:Name="picker"
Title="Select a theme"
SelectedIndexChanged="picker_SelectedIndexChanged"
TextColor="{DynamicResource PrimaryForegroundColor}"
BackgroundColor="{DynamicResource SecondaryBackgroundColor}" >
<Picker.ItemsSource>
<x:Array Type="{x:Type x:String}">
<!-- <x:String>System</x:String> -->
<x:String>Dark</x:String>
<x:String>Light</x:String>
<x:String>Color Blind</x:String>
</x:Array>
</Picker.ItemsSource>
</Picker>
</VerticalStackLayout>
</ContentPage>