Click here to Skip to main content
12,698,024 members (23,206 online)
Click here to Skip to main content


50 bookmarked

Creating and Reusing Dynamic Animations in Silverlight

, 5 Sep 2008 CPOL
Creating dynamic animations, and a simple way to reuse them to reduce the XAML code size.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AgDynAnimations
  public partial class App : Application

    public App()
      this.Startup += this.Application_Startup;
      this.Exit += this.Application_Exit;
      this.UnhandledException += this.Application_UnhandledException;


    private void Application_Startup(object sender, StartupEventArgs e)
      // Load the main control
      this.RootVisual = new EffectsPage();

    private void Application_Exit(object sender, EventArgs e)

    private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
United States United States
I'm excited about computers and programming, since my school days. I have master's degree in software development and at the moment I'm a software developer at Cellbi Software.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 5 Sep 2008
Article Copyright 2008 by SteveLi-Cellbi
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid