New to Telerik UI for WinForms? Start a free 30-day trial

Dispatches actions through an associated WinForms control, invoking inline when it cannot marshal through a created handle.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class Dispatcher

Inheritance: objectDispatcher

Constructors

Creates a dispatcher associated with the specified control.

C#
public Dispatcher(RadControl control)
Parameters:controlRadControl

The control used to marshal actions to its UI thread.

Methods

Uses the same dispatch behavior as BeginInvoke(Action); the supplied priority does not affect scheduling.

C#
public void BeginInvoke(Action executeNext, DispatcherPriority priority)
Parameters:executeNextAction

The action to execute.

priorityDispatcherPriority

A compatibility priority value, currently ignored by this dispatcher.

Schedules the action through the associated control when a cross-thread call and created handle require marshaling; otherwise, executes it inline.

C#
public void BeginInvoke(Action executeNext)
Parameters:executeNextAction

The action to execute.