Animations can be added to objects in an XAML file when a particular event is raised. To add an animation to an object, select ’Animation Workspace’ from Tools menu or press ’F7’. In the triggers panel, Click on the ’Add Event’ button and select the event on which animation has to be played. Click on the (+) button and select ’Begin’ option from the combobox. Add a timeline and add animations to be applied over the timeline.