Table of Contents

Class DispatcherExtension

Namespace
System.Windows.Threading
Assembly
HeBianGu.Base.WpfBase.dll
public static class DispatcherExtension
Inheritance
DispatcherExtension
Inherited Members

Methods

DelayInvoke(object, Action, DispatcherPriority)

public static void DelayInvoke(this object obj, Action action, DispatcherPriority priority = DispatcherPriority.Input)

Parameters

obj object
action Action
priority DispatcherPriority

DelayInvoke(object, IList, Action<object>, Action, DispatcherPriority)

[Obsolete("DelayInvokeList<T>")]
public static void DelayInvoke(this object obj, IList src, Action<object> invokeItem, Action end = null, DispatcherPriority priority = DispatcherPriority.Input)

Parameters

obj object
src IList
invokeItem Action<object>
end Action
priority DispatcherPriority

DelayInvoke(object, IList, IList, Action, DispatcherPriority)

public static void DelayInvoke(this object obj, IList target, IList src, Action end = null, DispatcherPriority priority = DispatcherPriority.Input)

Parameters

obj object
target IList
src IList
end Action
priority DispatcherPriority

DelayInvoke(Dispatcher, DispatcherPriority, Action)

[Obsolete]
public static void DelayInvoke(this Dispatcher dispatcher, DispatcherPriority priority, Action action)

Parameters

dispatcher Dispatcher
priority DispatcherPriority
action Action

DelayInvokeItem<T>(IEnumerable<T>, Action<T>, Action, DispatcherPriority)

public static void DelayInvokeItem<T>(this IEnumerable<T> src, Action<T> invokeItem, Action end = null, DispatcherPriority priority = DispatcherPriority.Input)

Parameters

src IEnumerable<T>
invokeItem Action<T>
end Action
priority DispatcherPriority

Type Parameters

T

GetDispatcherValue<T, R>(T, Func<T, R>)

public static R GetDispatcherValue<T, R>(this T dispatcher, Func<T, R> func) where T : DispatcherObject

Parameters

dispatcher T
func Func<T, R>

Returns

R

Type Parameters

T
R

InvokeDispatcher<T>(T, Action<T>)

public static void InvokeDispatcher<T>(this T dispatcher, Action<T> func) where T : DispatcherObject

Parameters

dispatcher T
func Action<T>

Type Parameters

T