﻿<UserControl 
    x:Class="WinStore.UX.Controls.CollapsibleListItemViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="300"
    d:DesignWidth="400"
    mc:Ignorable="d">

    <Grid Height="48">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:ConnectionId='1' x:Name="SelectionStates">
                <VisualState x:ConnectionId='2' x:Name="Normal" />
                <VisualState x:ConnectionId='3' x:Name="Selected">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="_itemTextBlock" Storyboard.TargetProperty="Foreground">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ForegroundActiveBrush}" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <TextBlock x:ConnectionId='4' 
            x:Name="_itemTextBlock" 
            Style="{StaticResource BodyTextBlockStyle}"
            Foreground="{ThemeResource PrimaryForegroundBrush}" />
    </Grid>
</UserControl>

