Share via


DisplayAreaWatcher Class

Definition

Enumerates display areas and raises events when the collection of display areas or the configuration of an individual DisplayArea changes.

public ref class DisplayAreaWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayAreaWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplayAreaWatcher
Public NotInheritable Class DisplayAreaWatcher
Inheritance
Object Platform::Object IInspectable DisplayAreaWatcher
Attributes

Remarks

To create a DisplayAreaWatcher, call DisplayArea.CreateWatcher. You must create the DisplayAreaWatcher on a UI thread.

Properties

Status

Gets the status of the DisplayAreaWatcher.

Methods

Start()

Starts the DisplayAreaWatcher.

Stop()

Stops the DisplayAreaWatcher.

Events

Added

Occurs when a DisplayArea is added to the collection of display areas returned by DisplayArea.FindAll.

EnumerationCompleted

Occurs when the initial pass of watcher events has been processed and the collection of display areas is complete.

Removed

Occurs when a DisplayArea is removed from the collection returned by DisplayArea.FindAll.

Stopped

Occurs when the DisplayAreaWatcher has stopped.

Updated

Occurs when the configuration of a DisplayArea has changed.

Applies to

See also