private void NewTrack_AnimationTrackUpdated(object sender, AnimationTrack track) { if (track == null) { stkPanelTracks.Children.Remove(sender as Control_AnimationTrackPresenter); } ContextMix.Clear(); foreach (var child in stkPanelTracks.Children) { if (child is Control_AnimationTrackPresenter) { Control_AnimationTrackPresenter item = (child as Control_AnimationTrackPresenter); ContextMix.AddTrack(item.ContextTrack); } } AnimationMixUpdated?.Invoke(this, ContextMix); UpdatePlaybackTime(); }
private void animMixer_AnimationMixUpdated(object sender, AnimationMix mix) { SetValue(AnimationMixProperty, mix); AnimationMixUpdated?.Invoke(this, mix); }