<UserControl x:Class="GridViewAnimation.AnimationUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:GridViewAnimation"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <Storyboard x:Key="RedToTransparent"  x:Name="RedToTransparent">
            <ColorAnimation
          Storyboard.TargetName="Background"
          Storyboard.TargetProperty="Color"
          From="Red" To="Transparent" Duration="0:0:1"  />
        </Storyboard>
        <!--<Storyboard x:Key="GreenToTransparent"  x:Name="GreenToTransparent">
            <ColorAnimation
          Storyboard.TargetName="Background"
          Storyboard.TargetProperty="Color"
          From="Green" To="Transparent" Duration="0:0:1"  />
        </Storyboard>-->
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" >
        <Border  x:Name="Border" >
            <Border.Background>
                <SolidColorBrush Color="Transparent" x:Name="Background"/>
            </Border.Background>
            <TextBlock x:Name="textBlock" VerticalAlignment="Center" Text="{Binding Name}"/>
        </Border>
    </Grid>
</UserControl>
