<Page
    x:Class="ScheduleSamples.Samples.SaveLocalData"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ScheduleSamples.Samples"
    xmlns:c1="using:C1.Xaml.Schedule"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Page.TopAppBar>
        <AppBar Padding="10,0" Background="#FF552ED6" RequestedTheme="Dark" >
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                <StackPanel.Resources>
                    <Style TargetType="Button" x:Key="btnStyle">
                        <Setter Property="Background" Value="#FF663FCE"/>
                        <Setter Property="VerticalAlignment" Value="Stretch"/>
                        <Setter Property="BorderThickness" Value="0"/>
                        <Setter Property="MinWidth" Value="100"/>
                    </Style>
                </StackPanel.Resources>
                <Button Click="DayClick" Style="{StaticResource btnStyle}">
                    <Button.Content>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="&#xe161;" 
                                       FontFamily="Segoe UI Symbol" FontSize="24"
                                       VerticalAlignment="Center"/>
                            <TextBlock Text=" Day" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button.Content>
                </Button>
                <Button Click="WorkWeekClick" Style="{StaticResource btnStyle}">
                    <Button.Content>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="&#xe162;" 
                                       FontFamily="Segoe UI Symbol" FontSize="24"
                                       VerticalAlignment="Center"/>
                            <TextBlock Text=" Work Week" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button.Content>
                </Button>
                <Button Click="WeekClick" Style="{StaticResource btnStyle}">
                    <Button.Content>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="&#xe162;" 
                                       FontFamily="Segoe UI Symbol" FontSize="24"
                                       VerticalAlignment="Center"/>
                            <TextBlock Text=" Week" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button.Content>
                </Button>
                <Button Click="MonthClick" Style="{StaticResource btnStyle}">
                    <Button.Content>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="&#xe163;" 
                                       FontFamily="Segoe UI Symbol" FontSize="24"
                                       VerticalAlignment="Center"/>
                            <TextBlock Text=" Month" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button.Content>
                </Button>
            </StackPanel>
        </AppBar>
    </Page.TopAppBar>
    <Page.BottomAppBar>
        <CommandBar Padding="10,0" Background="#FF552ED6" RequestedTheme="Dark" >
            <AppBarButton Icon="Add" Label="New" Click="Add_Click"/>
        </CommandBar>
    </Page.BottomAppBar>

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <c1:C1Scheduler x:Name="sched1" />
    </Grid>
</Page>
