WindowingEnvironment Class

Definition

Provides information about the system environments that are available to display the app.

public ref class WindowingEnvironment sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowingEnvironment final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowingEnvironment
Public NotInheritable Class WindowingEnvironment
Inheritance
Object Platform::Object IInspectable WindowingEnvironment
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

For an AppWindow, you can get the WindowingEnvironment from the AppWindow.WindowingEnvironment property.

Properties

IsEnabled

Gets a value that indicates whether the current windowing environment is available to the app.

Kind

Gets a value that describes the current windowing environment.

Methods

FindAll()

Retrieves a collection of all existing windowing environments in the system.

FindAll(WindowingEnvironmentKind)

Retrieves a collection of all existing windowing environments in the system of the specified kind.

GetDisplayRegions()

Retrieves the collection of display regions for this windowing environment.

Events

Changed

Occurs when a property of the windowing environment has changed.

Applies to