Class Utility
WPF-related utility functions.
Inheritance
System.Object
Utility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.Wpf
Assembly: FM.LiveSwitch.Wpf.dll
Syntax
public class Utility
Methods
DispatchToMainThread(Dispatcher, Action0)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(Dispatcher dispatcher, Action0 action)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Threading.Dispatcher | dispatcher | The dispatcher. |
Action0 | action | The action. |
DispatchToMainThread(Dispatcher, Action0, Boolean)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(Dispatcher dispatcher, Action0 action, bool forceSync)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Threading.Dispatcher | dispatcher | The dispatcher. |
Action0 | action | The action. |
System.Boolean | forceSync | Whether or not to force the action to run synchronously. |