WSA.Application.InvokeOnAppThread
static function InvokeOnAppThread(item: AppCallbackItem, waitUntilDone: bool): void;
static void InvokeOnAppThread(AppCallbackItem item, bool waitUntilDone);
static def InvokeOnAppThread(item as AppCallbackItem, waitUntilDone as bool) as void
Parameters

item Item to execute.
waitUntilDone Wait until item is executed.
Description

Executes callback item on application thread.

More information on UI and application threads can be found [wiki:man:windowsstore-appcallbacks|here]].