Dispatcher
Provides limited UI-thread invocation for RichTextEditor controls.
Delegates are marshaled only when the control requires invocation and already has a handle; otherwise they run immediately on the calling thread.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class Dispatcher
Inheritance: objectDispatcher
Constructors
Associates the dispatcher with the control whose thread is used for invocation.
public Dispatcher(RadControl control)
The control used to determine whether invocation is required and to marshal delegates.
Methods
Runs the delegate using the same thread behavior as BeginInvoke(Action).
public void BeginInvoke(Action executeNext, DispatcherPriority priority)
The delegate to execute.
priorityDispatcherPriorityA compatibility priority value; this implementation does not use it to schedule the delegate.
The delegate may run immediately;
prioritydoes not affect when it runs.
Runs the delegate immediately or marshals it to the associated control, depending on the control's handle and thread state.
public void BeginInvoke(Action executeNext)
The delegate to execute.
The delegate runs synchronously on the calling thread when invocation is not required or the control has no handle.