<Canvas
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	Width="100" Height="200">
	<Rectangle Width="50" Height="150" Canvas.Left="25" Canvas.Top="25">
	<Rectangle.Fill>
		<SolidColorBrush x:Name="solid" Color="Red" />
	</Rectangle.Fill>

	<Rectangle.Triggers>
		<EventTrigger RoutedEvent="Rectangle.Loaded">
			<BeginStoryboard>
				<Storyboard>
					<ColorAnimationUsingKeyFrames Storyboard.TargetName="solid" Storyboard.TargetProperty="Color">
						<SplineColorKeyFrame Value="Blue"/>
					</ColorAnimationUsingKeyFrames>
				</Storyboard>
			</BeginStoryboard>
		</EventTrigger>
	</Rectangle.Triggers>
	</Rectangle>
</Canvas>

