<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Factories.ToolbarItem" Cursor="Hand" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid RenderTransformOrigin="0.5,0.5">
        <Grid.Resources>
            <Storyboard x:Name="mouseOver">
                <DoubleAnimation Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleX" To="1.2" Duration="0:0:0.1" />
                <DoubleAnimation Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleY" To="1.2" Duration="0:0:0.1" />
            </Storyboard>
            <Storyboard x:Name="mouseOut">
                <DoubleAnimation Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleX" To="1" Duration="0:0:0.1" />
                <DoubleAnimation Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleY" To="1" Duration="0:0:0.1" />
            </Storyboard>
            <Storyboard x:Name="disabledSB">
                <DoubleAnimation Storyboard.TargetName="image" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0:0:0.1" />
            </Storyboard>
            <Storyboard x:Name="enabledSB">
                <DoubleAnimation Storyboard.TargetName="image" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.1" />
            </Storyboard>
        </Grid.Resources>
        
        <Grid.RenderTransform>
            <ScaleTransform x:Name="scale" />
        </Grid.RenderTransform>
        
        <Image Name="image" Width="80" Height="80" />
            
        <Border Height="12" CornerRadius="3" Background="#D8091B2E" Width="72" VerticalAlignment="Bottom">
            <TextBlock Height="10" Name="label" FontFamily="Trebuchet MS" FontSize="9" Foreground="#FFFFFFFF" TextAlignment="Center" />
		</Border>
    </Grid>
</UserControl>