I have something like this:
scaleTransform.BeginAnimation(ScaleTransform.ScaleXProperty, shrinkAnimation); scaleTransform.BeginAnimation(ScaleTransform.ScaleYProperty, shrinkAnimation); MyDialog.Show();
The animation runs correctly in parallel (x and y are compressed together), but since BeginAnimation is an asynchronous call, the Show() method runs while the animation is still running (suppose shrinkAnimation works for 1 second).
How to wait for the animation to complete before calling Show() ?
Thanks!
c # animation wpf synchronous
Gus cavalcanti
source share