<UserControl
	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"
	xmlns:local="clr-namespace:ForzaUI" 
	mc:Ignorable="d"
	x:Class="ForzaUI.ColorBlockControl"
	x:Name="UserControl">
	<UserControl.Resources>
		<Storyboard x:Key="TransitionIn">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="rectangle">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.01"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.01"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
        <EventTrigger RoutedEvent="local:EventFire.FzEvent">
			<BeginStoryboard x:Name="OnFzEvent_BeginStoryboard1" Storyboard="{StaticResource TransitionIn}"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Canvas>
		<Rectangle x:Name="rectangle" Height="100" Width="500" Fill="Red" RenderTransformOrigin="0,0.5">
			<Rectangle.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Rectangle.RenderTransform>
		</Rectangle>
	</Canvas>
</UserControl>