This documentation is for the old version. Go to the latest Graphics Mill docs

SyncHandler.SynchronizationMode Property

Gets/sets synchronization mode for the object.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Overridable Property SynchronizationMode As SynchronizationMode
public virtual SynchronizationMode SynchronizationMode { get; set; }

Property Value

Value that specifies the synchronization mode for the object.


Currently Graphics Mill for .NET provides the following synchronization options:

Mode Description
Synchronous mode Operation (and its event handlers) is running in the application main thread.
Common asynchronous mode Operation and its event handlers are running in the auxilary thread.
Asynchronous mode that uses main thread message loop Operation is running in the auxilary thread, but its event handlers are running in the application main thread.

Default value is Sync.


To use AsyncViaMessageLoop mode, application message loop must be running. In particular it means that you cannot set AsyncViaMessageLoop value into this property at application initialization event (such as form load, etc).


Another thing you should keep in mind is that you cannot modify this property when the auxilary thread is running. So you cannot set these properties in all events except of Starting and Stopped (that are called before and after the thread starts/finishes).

See Also