CoreDispatcher.ProcessEvents method

2 out of 5 rated this helpful - Rate this topic

Starts the dispatcher processing the input event queue for this instance of CoreWindow.

Syntax


public void ProcessEvents(
  CoreProcessEventsOption options
)

Parameters

options

Type: CoreProcessEventsOption

The options for processing window events.

Remarks

This method is called from the main app loop defined in the IFrameworkView::Run method you implemented on your view provider. Typically, you call it once on each iteration of the loop. If you are creating a Windows Store app built for Windows using DirectX with C++, call this method with CoreProcessEventsOption::ProcessAllIfPending.

If you are using another app models, such as XAML, you do not need to call this method. To avoid reentrancy scenarios in your Windows Store app built for Windows using C++, C#, or Visual Basic with XAML, use the types and methods in the provided XAML namespaces, which call this method in the appropriate context.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

CoreDispatcher

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.