﻿<UserControl
    x:Class="WinStore.UX.Controls.HamburgerNavItemView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinStore.UX.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="50">



  <Grid x:ConnectionId='1' x:Name="_rootGrid" MinHeight="48" Background="Transparent">
    <VisualStateManager.VisualStateGroups>
      <VisualStateGroup x:ConnectionId='2' x:Name="VisualStateGroup">
        <VisualState x:ConnectionId='3' x:Name="Unselected"/>
        <VisualState x:ConnectionId='4' x:Name="Selected">
          <Storyboard>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="_rootGrid" Storyboard.TargetProperty="Background">
              <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppThemePrimaryBrush}" />
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="_title" Storyboard.TargetProperty="Foreground">
              <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource HamburgerSelectedTextBrush}" />
            </ObjectAnimationUsingKeyFrames>
          </Storyboard>
        </VisualState>
      </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
    <TextBlock x:ConnectionId='5' x:Name="_title" HorizontalAlignment="Left" Margin="12,0,0,0" VerticalAlignment="Center" TextWrapping="NoWrap" FontSize="{StaticResource BodyFontSize}"/>
  </Grid>
</UserControl>

