I am building an app using WPF and I have 2 animations I want to have delay between them. but when I try to that in the
MainWindow_Loaded(object sender, RoutedEventArgs e)
event, it just delays while loading and I miss the 1st animation.
any help?
Maybe worth trying would be to invoke the code with animation using the Dispatcher object. By setting the dispatcher priority you can postpone the execution until for example all data bindings (even asynchronous) are completed.
// Schedule the update function in the UI thread.
Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Loaded, ...);
if this does not work try to change the priority - the lower priority the later your action will be invoked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With