EaseObjectGroup

Overview

Listens for the Complete and Stopped event from any number EaseObjects added with the AddEase method. The Complete event will trigger when all items in it's active list are done.

Syntax

    var easeGroup = new EaseObjectGroup();
    easeGroup.Complete += callback;
    easeGroup.AddEaseObject(easeObject);

Usage

Creates an EaseObjectGroup that will report when four animations are complete. In this case, we're animating the column width 4 times by staggering the delay.

    var easeGroup = new EaseObjectGroup();
    easeGroup.Complete += g => Debug.WriteLine("COMPLETE");
    
    for (var i = 0; i < 4; i++)
    {
        var width = .3 + (_rnd.NextDouble() * 2.7);
        var eo = ArtefactAnimator.AddEase(col, new[] { AnimationTypes.ColumWidthStar }, new object[] { width }, 1, AnimationTransitions.ElasticEaseOut, i * .5);
        
        easeGroup.AddEaseObject(eo);
    }

Triggers

To specify weather or not to use Complete and/or Stopped event from each EaseObject, set the UseStoppedEvent and UseCompleteEvent on the EaseObject Group before adding.

Last edited Mar 2, 2010 at 8:01 PM by jgraup, version 1

Comments

No comments yet.