Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WindowingEnvironment Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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

Name Description
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

Name Description
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

Name Description
Changed

Occurs when a property of the windowing environment has changed.

Applies to


Feedback

Was this page helpful?