C# Class CefSharp.WinForms.Example.ControlExtensions

Show file Open project: Secbyte/CefSharp.Net40

Public Methods

Method Description
InvokeOnUiThreadIfRequired ( Control control, Action action ) : void

Executes the Action asynchronously on the UI thread, does not block execution on the calling thread. No action will be performed if the control doesn't have a valid handle or the control is Disposed/Disposing.

Method Details

InvokeOnUiThreadIfRequired() public static method

Executes the Action asynchronously on the UI thread, does not block execution on the calling thread. No action will be performed if the control doesn't have a valid handle or the control is Disposed/Disposing.
public static InvokeOnUiThreadIfRequired ( Control control, Action action ) : void
control Control the control for which the update is required
action Action action to be performed on the control
return void