<?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>
