Window.DispatcherQueue Property

Definition

Gets the DispatcherQueue object for the window.

public:
 property DispatcherQueue ^ DispatcherQueue { DispatcherQueue ^ get(); };
DispatcherQueue DispatcherQueue();
public DispatcherQueue DispatcherQueue { get; }
var dispatcherQueue = window.dispatcherQueue;
Public ReadOnly Property DispatcherQueue As DispatcherQueue

Property Value

The DispatcherQueue object for the window.

Remarks

The DispatcherQueue represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

Most members of the Window class can only be accessed when running on the thread the object was created on. However, this property can be called from any thread.

Applies to