CoreWindowEventArgs CoreWindowEventArgs CoreWindowEventArgs CoreWindowEventArgs Class

Definition

Contains the set of arguments returned to an app after a window input or behavior event.

public : sealed class CoreWindowEventArgs : ICoreWindowEventArgs
public sealed class CoreWindowEventArgs : ICoreWindowEventArgs
Public NotInheritable Class CoreWindowEventArgs Implements ICoreWindowEventArgs
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is passed to the app in the corresponding event delegate. The app can use this to set the Handled property, which, when true, informs the framework to perform default processing of the event.

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Properties

Handled Handled Handled Handled

Specifies the property that gets or sets whether the event was handled.

public : Platform::Boolean Handled { get; set; }
public bool Handled { get; set; }
Public ReadWrite Property Handled As bool
var bool = coreWindowEventArgs.handled;
coreWindowEventArgs.handled = bool;
Value
Platform::Boolean bool bool bool

True if the event has been handled by the appropriate delegate; false if it has not.