Class Utility
WPF-related utility functions.
Inheritance
System.Object
Utility
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.dll
Syntax
public class Utility : object
Methods
DispatchToMainThread(CoreDispatcher, Action0)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(CoreDispatcher dispatcher, Action0 action)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The dispatcher. |
Action0 | action | The action. |
DispatchToMainThread(CoreDispatcher, Action0, Boolean)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(CoreDispatcher dispatcher, Action0 action, bool forceSync)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The dispatcher. |
Action0 | action | The action. |
System.Boolean | forceSync | Whether or not to force the action to run synchronously. |