---
title: "Creating Animation in Silverlight"  
description: "In this article I am going to demonstrate that how to use simple animation in Silverlight by using Visual Studio 2010. For creating any animation in S"  
author: "Anonymous User"  
published: 2011-03-05  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/483/creating-animation-in-silverlight  
category: "silverlight"  
tags: ["silverlight"]  
reading_time: 1 minute  

---

# Creating Animation in Silverlight

In this article I am going to demonstrate that how to use simple animation in Silverlight by using Visual Studio 2010. For creating any animation in Silverlight you have to perform two tasks. First create a **StoryBoard** object and set some properties to that object then create an object in which you want to apply story board.\

##### Following XAML code represent demonstration of Animation in Silverlight

```
<Grid x:Name="LayoutRoot" Background="White">        <Grid.Resources>            <Storyboard x:Name="storyBoard">                <DoubleAnimation Storyboard.TargetName="rotateTransform" Storyboard.TargetProperty="Angle" From="0" To="360" Duration="0:0:5"                                 RepeatBehavior="Forever" AutoReverse="True" />            </Storyboard>        </Grid.Resources>        <Rectangle Fill="LightBlue" x:Name="rectangle" Height="100" Width="100">            <Rectangle.RenderTransform>                <RotateTransform x:Name="rotateTransform" />            </Rectangle.RenderTransform>        </Rectangle></Grid>
```

##### Save application and execute it.

![Creating Animation in Silverlight](https://www.mindstick.com/mindstickarticle/253213ac-7d8b-4f8d-9c49-ee4174d82b73/images/0eb4a7ff-3619-4ec8-9411-c0b0bec6ba48.png)

![Creating Animation in Silverlight](https://www.mindstick.com/mindstickarticle/253213ac-7d8b-4f8d-9c49-ee4174d82b73/images/858e29a1-5aa1-4fe8-8739-df659ad06392.png)

---

Original Source: https://www.mindstick.com/articles/483/creating-animation-in-silverlight

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
