Share via


DisplayInformation Class

Definition

Monitors and controls display-related information for a top-level window or display monitor. The class provides events to allow clients to monitor for changes affecting which display(s) the view resides on, as well as changes in displays that can affect the app window.

public ref class DisplayInformation sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65538)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayInformation final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65538)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayInformation : System.IDisposable
Public NotInheritable Class DisplayInformation
Implements IDisposable
Inheritance
Object Platform::Object IInspectable DisplayInformation
Attributes
Implements

Properties

DispatcherQueue

Gets the dispatcher queue associated with the DisplayInformation object.

IsStereoEnabled

Gets a value that indicates whether or not the device supports stereoscopic 3D.

Methods

Close()

Closes the DisplayInformation object, and releases system resources.

CreateForDisplayId(DisplayId)

Creates a new DisplayInformation object for the specified DisplayId.

Note

You must call this method from a thread that has a Microsoft.UI.Dispatching.DispatcherQueue already running.

CreateForWindowId(WindowId)

Creates a new DisplayInformation object for the specified WindowId.

Note

You must call this method from a thread that has a Microsoft.UI.Dispatching.DispatcherQueue already running.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetAdvancedColorInfo()

Retrieves the Advanced Color information.

GetColorProfile()

Retrieves the default International Color Consortium (ICC) color profile that is associated with the physical display.

GetColorProfileAsync()

Asynchronously retrieves the default International Color Consortium (ICC) color profile that is associated with the physical display.

Events

AdvancedColorInfoChanged

Raised when the advanced color information is changed.

ColorProfileChanged

Occurs when the physical display's color profile changes.

Destroyed

Raised when the DisplayInformation object is destroyed.

IsStereoEnabledChanged

Occurs when the IsStereoEnabled property changes due to a change in support for stereoscopic 3D.

Applies to