<Application
    x:Class="ZipSamples.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ZipSamples" >

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Default">
                    <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
                    <x:String x:Key="BackButtonSnappedGlyph">&#xE0BA;</x:String>
                </ResourceDictionary>

                <ResourceDictionary x:Key="HighContrast">
                    <x:String x:Key="BackButtonGlyph">&#xE0A6;</x:String>
                    <x:String x:Key="BackButtonSnappedGlyph">&#xE0C4;</x:String>
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>

            <!-- Application-specific resources -->

            <x:String x:Key="AppName">ZipSamples</x:String>

            <!--***************** CONTROL ICONS *****************-->

            <SolidColorBrush x:Key="IconBrush" Color="White"/>

            <SolidColorBrush x:Key="IconGrayBackground" Color="#FF777777"/>
            <!-- Page layout roots typically use entrance animations and a theme-appropriate background color -->

            <Style x:Key="LayoutRootStyle" TargetType="Panel">
                <Setter Property="Background" Value="{StaticResource ApplicationPageBackgroundThemeBrush}"/>
                <Setter Property="ChildrenTransitions">
                    <Setter.Value>
                        <TransitionCollection>
                            <EntranceThemeTransition/>
                        </TransitionCollection>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="IconName" TargetType="TextBlock">
                <Setter Property="Foreground" Value="{StaticResource IconBrush}"/>
                <!-- <Setter Property="FontSize" Value="12"/>-->
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="Margin" Value="-5,0,-5,1"/>
            </Style>

            <DataTemplate x:Key="IconC1Gray">
                <Grid Background="{StaticResource IconGrayBackground}" Height="60" Width="60">
                    <TextBlock TextWrapping="Wrap" Text="{Binding}" Style="{StaticResource IconName}"/>
                </Grid>
            </DataTemplate>

            <DataTemplate x:Key="Standard250x250ItemTemplate">
                <Grid HorizontalAlignment="Left" Width="150" Height="150">
                    <Border Background="#FF2C383D">
                        <ContentControl ContentTemplate="{Binding Icon}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="28 16 28 40"/>
                    </Border>
                    <Border VerticalAlignment="Bottom" Height="34">
                        <TextBlock Text="{Binding Name}" Foreground="White" FontFamily="Segoe WP" FontSize="17" VerticalAlignment="Center" TextAlignment="Center"/>
                    </Border>
                </Grid>
            </DataTemplate>
            <DataTemplate x:Key="Standard80ItemTemplate">
                <Grid Margin="6">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" Width="60" Height="60">
                        <ContentControl ContentTemplate="{Binding Icon}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
                    </Border>
                    <StackPanel Grid.Column="1" Margin="10,0,0,0">
                        <TextBlock Text="{Binding Title}" Style="{ThemeResource BodyTextBlockStyle}" MaxHeight="40"/>
                        <TextBlock Text="{Binding Description}" Style="{ThemeResource CaptionTextBlockStyle}" TextWrapping="WrapWholeWords"/>
                    </StackPanel>
                </Grid>
            </DataTemplate>
            <DataTemplate x:Name="IconC1Seeitinaction">
                <Path Data="M51,33 L51,43 L55,43 L55,33 z M41,33 L41,43 L45,43 L45,33 z M31,33 L31,43 L35,43 L35,33 z M21,33 L21,43 L25,43 L25,33 z M11.000001,33 L11.000001,43 L15,43 L15,33 z M0.99999994,33 L0.99999994,43 L4.9999995,43 L4.9999995,33 z M69.710526,31.033337 C71.846992,31.033337 73.578949,32.809273 73.578949,35 C73.578949,37.190731 71.846992,38.966667 69.710526,38.966667 C67.574059,38.966667 65.842102,37.190731 65.842102,35 C65.842102,32.809273 67.574059,31.033337 69.710526,31.033337 z M46,27.000002 L46,37 L50,37 L50,27.000002 z M36,27.000002 L36,37 L40,37 L40,27.000002 z M26,27.000002 L26,37 L30,37 L30,27.000002 z M16,27.000002 L16,37 L20,37 L20,27.000002 z M5.9999995,27.000002 L5.9999995,37 L9.999999,37 L9.999999,27.000002 z M71.205887,26.500002 C68.743446,26.500002 60.020409,30.190105 59.700783,30.278435 C58.142456,30.709078 57,32.116245 57,33.785713 L57,36.214287 C57,37.855938 58.104702,39.243958 59.623238,39.69923 C59.965714,39.80191 68.743446,43.5 71.205887,43.5 C74.958168,43.5 78,40.238079 78,36.214287 L78,33.785713 C78,29.761929 74.958168,26.500002 71.205887,26.500002 z M4.0000033,0 L33,0 C34.747871,1.1918019E-06 36.283829,1.1210797 36.828194,2.6833992 C36.971851,3.0957043 41.504314,12.000001 41.504314,12 L80,12 C82.209137,12.000001 84,13.790864 84,16 L84,60 C84,62.209137 82.209137,64 80,64 L3.9999998,64 C1.790861,64 0,62.209137 0,60 L3.7550926E-06,4.000001 C3.0100346E-06,1.7908642 1.790864,1.1918019E-06 4.0000033,0 z"
                      Fill="{StaticResource IconBrush}"
                      Stretch="Uniform" />
            </DataTemplate>

        </ResourceDictionary>
    </Application.Resources>
</Application>
