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

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

Executes callback item on UI thread.

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