I have tried the solutions suggested in the following answer:
https://stackoverflow.com/a/8886941/494094
Window.ContentRendered
UIElement.LayoutUpdated
Window.Activated
So far, Window.Activated
event seems to suit me best. The only caveat is that none of those events are RoutedEvent
s, so you need to define the animation in the code behind like the following:
this.Activated += (sender, args) => ((Storyboard) FindResource("MyAnimation")).Begin();