Share via


AdaptiveDimmingOptions.AllowWhenExternalDisplayConnected Property

Definition

Gets or sets whether screen dimming behavior, based on the user engagement state reported by the human presence sensor, is enabled when a user has connected an external monitor.

public:
 property bool AllowWhenExternalDisplayConnected { bool get(); void set(bool value); };
bool AllowWhenExternalDisplayConnected();

void AllowWhenExternalDisplayConnected(bool value);
public bool AllowWhenExternalDisplayConnected { get; set; }
var boolean = adaptiveDimmingOptions.allowWhenExternalDisplayConnected;
adaptiveDimmingOptions.allowWhenExternalDisplayConnected = boolean;
Public Property AllowWhenExternalDisplayConnected As Boolean

Property Value

Boolean

bool

True, if screen dimming behavior is enabled. Otherwise, false.

Remarks

Introduced in the May Moment update for Windows 11, Version 22H2, Build 22621.

We recommend using the AdaptiveDimming APIs instead of the AttentionAwareDimming APIs (IsAttentionAwareDimmingSupported, IsAttentionAwareDimmingEnabled), which are now obsolete.

The user can specify their preferred dimming behavior in the System settings (see Launch the Windows Settings app).

Applies to