CoreDispatcher Class

Provides the Windows Runtime core event message dispatcher. Instances of this type are responsible for processing the window messages and dispatching the events to the client.

Syntax

public ref class CoreDispatcher sealed : ICoreAcceleratorKeys  

Remarks

Instances of this type can be obtained from the CoreWindow.Dispatcher property. The current CoreWindow instance can be obtained by calling CoreWindow.GetForCurrentThread.

Example

C++

void MyCoreWindowEvents::Run() // this is an implementation of IFrameworkView::Run() used to show context. It is called by CoreApplication::Run().
{
    CoreWindow::GetForCurrentThread()->Activate();

    /...

    CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit);
}  

Requirements

Namespace: Windows.UI.Core

Metadata: windows.winmd

See also

Reference

CoreDispatcher Members

Windows.UI.Core Namespace