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

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <!-- 
                    Styles that define common aspects of the platform look and feel
                    Required by Visual Studio project and item templates
                 -->
                <ResourceDictionary Source="Common/StandardStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>

            <!-- Application-specific resources -->

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

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

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

            <SolidColorBrush x:Key="IconGrayBackground" Color="#FF777777"/>

            <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">
                        <Image Source="{Binding Image}" Stretch="UniformToFill"/>
                    </Border>
                    <Border Height="50" VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
                        <TextBlock Text="{Binding Name}" Foreground="White" FontFamily="Segoe WP" FontSize="18" VerticalAlignment="Center" TextAlignment="Center"/>
                    </Border>
                </Grid>
            </DataTemplate>

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