public static void Play(params IAnimation[] animations) { var sb = new StoryBoard(); sb.AddAnimations(animations); sb.AnimateSync(); }
public static void BeginPlay(params IAnimation[] animations) { bool processed = false; if (sb != null) { lock (sb) { if (sb != null) { sb.AddAnimations(animations); processed = true; } } } if (!processed) { sb = new StoryBoard(); sb.AddAnimations(animations); sb.BeginAnimate(() => sb = null); } }
public static void BeginPlay(params IAnimation[] animations) { bool processed = false; if (sb != null) { lock (sb) { if (sb != null) { sb.AddAnimations(animations); processed = true; } } } if (!processed) { sb = new StoryBoard(); sb.AddAnimations(animations); sb.BeginAnimate(() => sb = null); } }
public static void Play(params IAnimation[] animations) { var sb = new StoryBoard(); sb.AddAnimations(animations); sb.AnimateSync(); }