<Page
    x:Class="BasicLibrarySamples.EntranceTab"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BasicLibrarySamples"
    xmlns:c1="using:C1.Xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Page.Resources>
        <Style x:Key="TabListStyle" TargetType="c1:C1TabControl">
            <Setter Property="Margin" Value="20 10" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="SelectedBackground" Value="Green" />
            <Setter Property="TabStripBackground" Value="#555555" />
            <Setter Property="CanUserReorder" Value="False" />
            <Setter Property="Padding" Value="0" />
        </Style>
        <Style x:Key="TabItemStyle" TargetType="c1:C1TabItem">
            <Setter Property="Foreground" Value="White" />
        </Style>
        <Style x:Key="SectionTitleTextStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="30" />
            <Setter Property="FontWeight" Value="Light" />
            <Setter Property="Margin" Value="20 5" />
        </Style>
        <Style x:Key="SectionContentTextStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="14" />
            <Setter Property="Margin" Value="10" />
            <Setter Property="TextWrapping" Value="Wrap"/>
        </Style>
        <Style x:Key="WideTabHeaderTextStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="20" />
            <Setter Property="Width" Value="160" />
            <Setter Property="TextAlignment" Value="Right"/>
            <Setter Property="Foreground" Value="White" />
        </Style>
        <Style x:Key="NarrowTabHeaderTextStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="10" />
            <Setter Property="Width" Value="70" />
            <Setter Property="TextAlignment" Value="Right"/>
            <Setter Property="Foreground" Value="White" />
        </Style>
        <Style x:Key="WideTabHeaderIconStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="20" />
            <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
            <Setter Property="Foreground" Value="White" />
        </Style>
        <Style x:Key="NarrowTabHeaderIconStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="10" />
            <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
            <Setter Property="Foreground" Value="White" />
        </Style>
        <Style x:Key="TransitionGrid" TargetType="Grid">
            <Setter Property="Transitions">
                <Setter.Value>
                    <TransitionCollection>
                        <EntranceThemeTransition />
                    </TransitionCollection>
                </Setter.Value>
            </Setter>
        </Style>
    </Page.Resources>

    <Grid Background="#555555" RequestedTheme="Light">
        <c1:C1TabControl x:Name="c1TabControl1"
                         CanUserReorder="False"
                         TabStripPlacement="Left"
                         TabStripBackground="#555555"
                         Background="Transparent"
                         BorderThickness="0"
                         Padding="0"
                         SelectedBackground="Green">
            <!-- Collection Tab-->
            <c1:C1TabItem Padding="10 5">
                <c1:C1TabItem.Header>
                    <Grid>
                        <TextBlock x:Name="collectionIcon" Text="&#xE189;" 
                                   Style="{StaticResource WideTabHeaderIconStyle}" />
                        <TextBlock x:Name="collectionText" Text="Collection" 
                                   Style="{StaticResource WideTabHeaderTextStyle}"/>
                    </Grid>
                </c1:C1TabItem.Header>
                <Grid Background="White" 
                      RequestedTheme="Light">
                    <Grid Style="{StaticResource TransitionGrid}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock Text="Collection" 
                                   Style="{StaticResource SectionTitleTextStyle}"/>
                        <c1:C1TabControl x:Name="c1TabControl2"
                                         Grid.Row="1"
                                         Style="{StaticResource TabListStyle}">
                            <c1:C1TabItem Header="Albums" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                            <c1:C1TabItem Header="Artists" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                            <c1:C1TabItem Header="Songs" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                        </c1:C1TabControl>
                    </Grid>
                </Grid>
            </c1:C1TabItem>
            <!-- Radio Tab-->
            <c1:C1TabItem Padding="10 5">
                <c1:C1TabItem.Header>
                    <Grid>
                        <TextBlock x:Name="radioIcon" Text="&#xE2DF;"
                                   Style="{StaticResource WideTabHeaderIconStyle}"
                                   FontSize="18"/>
                        <TextBlock x:Name="radioText" Text="Radio"
                                   Style="{StaticResource WideTabHeaderTextStyle}"/>
                    </Grid>

                </c1:C1TabItem.Header>
                <Grid Background="White" 
                      RequestedTheme="Light">
                    <Grid Style="{StaticResource TransitionGrid}">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock Text="Radio" 
                                   Style="{StaticResource SectionTitleTextStyle}"/>
                        <c1:C1TabControl x:Name="c1TabControl3"
                                         Grid.Row="1"
                                         Style="{StaticResource TabListStyle}">
                            <c1:C1TabItem Header="Stations" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                            <c1:C1TabItem Header="Recommendations" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                        </c1:C1TabControl>
                    </Grid>
                </Grid>
            </c1:C1TabItem>
            <!-- Explore Tab-->
            <c1:C1TabItem Padding="10 5">
                <c1:C1TabItem.Header>
                    <Grid>
                        <TextBlock x:Name="exploreIcon" Text="&#xE109;"
                                   Style="{StaticResource WideTabHeaderIconStyle}"/>
                        <TextBlock x:Name="exploreText" Text="Explore"
                                   Style="{StaticResource WideTabHeaderTextStyle}"/>
                    </Grid>

                </c1:C1TabItem.Header>
                <Grid Background="White" 
                      RequestedTheme="Light">
                    <Grid Style="{StaticResource TransitionGrid}">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock Text="Explore" 
                                   Style="{StaticResource SectionTitleTextStyle}"/>
                        <c1:C1TabControl x:Name="c1TabControl4"
                                         Grid.Row="1"
                                         Style="{StaticResource TabListStyle}">
                            <c1:C1TabItem Header="New Albums" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                            <c1:C1TabItem Header="Top Albums" Style="{StaticResource TabItemStyle}">
                                <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0" Background="Transparent" Margin="0" Padding="0">
                                    <Grid Style="{StaticResource TransitionGrid}">
                                        <TextBlock Style="{StaticResource SectionContentTextStyle}">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</TextBlock>
                                    </Grid>
                                </ScrollViewer>
                            </c1:C1TabItem>
                        </c1:C1TabControl>
                    </Grid>
                </Grid>
            </c1:C1TabItem>
        </c1:C1TabControl>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState x:Name="WideLayout">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="540"/>
                    </VisualState.StateTriggers>
                </VisualState>
                <VisualState x:Name="NarrowLayout">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="0"/>
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="collectionIcon.Style" Value="{StaticResource NarrowTabHeaderIconStyle}"/>
                        <Setter Target="radioIcon.Style" Value="{StaticResource NarrowTabHeaderIconStyle}"/>
                        <Setter Target="exploreIcon.Style" Value="{StaticResource NarrowTabHeaderIconStyle}"/>
                        <Setter Target="collectionText.Style" Value="{StaticResource NarrowTabHeaderTextStyle}"/>
                        <Setter Target="radioText.Style" Value="{StaticResource NarrowTabHeaderTextStyle}"/>
                        <Setter Target="exploreText.Style" Value="{StaticResource NarrowTabHeaderTextStyle}"/>
                        <Setter Target="c1TabControl2.FontSize" Value="8"/>
                        <Setter Target="c1TabControl3.FontSize" Value="7"/>
                        <Setter Target="c1TabControl4.FontSize" Value="6"/>
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</Page>
