https://learn.microsoft.com/pt-br/windows/windows-app-sdk/api/winrt/microsoft.ui.dispatching.dispatcherqueue.tryenqueue?view=windows-app-sdk-2.0
DispatcherQueue.TryEnqueue Method (Microsoft.UI.Dispatching) - Windows App SDK | Microsoft Learn
Adds a task to the DispatcherQueue that will be executed on the thread associated with the DispatcherQueue.
windows appmethodmicrosoftuidispatching