How can I prevent deadlocks when awaiting navigation or async calls?
Avoid .Wait() and .Result. Prefer async Task (not async void, except for event handlers). Use ConfigureAwait(false) inside libraries so callers do not capture the UI context accidentally.
Why does the app UI stutter or jitter after navigation?
Stutter often comes from layout recalculations, heavy list rendering, image decoding on the UI thread, or GC pauses. Downsample images, load them asynchronously, flatten visual trees, and enable virtualization in lists.
What causes random navigation crashes when using Shell routing?
Typical causes: unregistered or duplicate routes, wrong absolute versus relative URIs, passing complex objects via query strings, concurrent GoToAsync calls, or exceptions during page or ViewModel construction. Register routes and pass IDs or use a shared service to hand over complex data. Register and navigate:
Why does navigation sometimes freeze or block the UI thread?
Because something heavy ran on the UI thread: constructors, synchronous I/O, .Result or .Wait(), long event handlers, or expensive property getters. Make everything asynchronous (async/await), avoid blocking calls, and use ConfigureAwait(false) in library code that does not need the UI context.
Why is Shell.Current.GoToAsync(…) taking a long time?
Navigation can be slow when the page or ViewModel does heavy work during construction, DI resolves expensive services, fonts or images decode for the first time, or native controls initialize. Profile first, then defer or move heavy work off the UI thread. Use compiled bindings (x:DataType) to reduce binding overhead. Offload synchronous CPU work: