Home » FAQ » .NET MAUI » How do I ensure UI updates happen on the MainThread when navigating?
When background work finishes, make your UI changes on the main thread, and use MainThread.InvokeOnMainThreadAsync for awaited updates (or the Begin/Invoke variants for fire-and-forget). That keeps UI updates safe and predictable.
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with