public void OnStoryboardCompleted(object sender, EventArgs e) { ViewTransitionControl control = this.Target as ViewTransitionControl; if (control != null) { control.OnStoryboardCompleted(sender, e); } else { Dispose(); } }
public WeakStoryboardEvents(ViewTransitionControl viewTransitionControl, Storyboard storyboard) : base(viewTransitionControl) { this.storyboard = storyboard; this.storyboard.Completed += this.OnStoryboardCompleted; }