Specifically, look into how XAML apps work on the Universal Windows Platform [1]. Windows application development moved past Win32 about ten years ago with the initial version of XAML (Windows Presentation Foundation).<p>Nowadays, the event loop is still there under the hood, but it&#x27;s abstracted away by the UI framework. You are left with independent views that can render themselves, but the raw event loop is exposed as higher level events raised by individual views (e.g., a single &quot;Tapped&quot; event instead of having to handle separate mouse&#x2F;touch&#x2F;pen&#x2F;controller down+up events).<p>Apps often use some sort of message bus for communicating between non-UI components in a decoupled way, which may or may not re-use the UI thread&#x27;s event loop. In general, you try to minimize what happens on the main loop, since it can lead to UI unresponsiveness. However, in XAML the main event loop is actually a priority queue, so you can put stuff into it at lower priority than regular input events[2].<p>1. <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;apps&#x2F;dn894631.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;apps&#x2F;dn8946...</a><p>2. <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;apps&#x2F;windows.ui.core.coredispatcher.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;apps&#x2F;window...</a><p>Disclaimer: I work at Microsoft, where we&#x27;re using XAML to build the Windows Shell.