HumanPresenceSettings.IsAttentionAwareDimmingEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
property bool IsAttentionAwareDimmingEnabled { bool get(); void set(bool value); };
/// [get: Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")]
bool IsAttentionAwareDimmingEnabled();
void IsAttentionAwareDimmingEnabled(bool value);
public bool IsAttentionAwareDimmingEnabled { [Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")] set; }
var boolean = humanPresenceSettings.isAttentionAwareDimmingEnabled;
humanPresenceSettings.isAttentionAwareDimmingEnabled = boolean;
Public Property IsAttentionAwareDimmingEnabled As Boolean
屬性值
Boolean
bool
如果已啟用注意感知暗灰色,則為 True。 否則為 false。 預設值為 false。
- 屬性
備註
自 Windows 11 版本 22H2 組建 22621 起已淘汰的 May Moment 更新。
我們建議使用 AdaptiveDimming API 而非 AttentionAwareDimming API (IsAttentionAwareDimmingSupported、 IsAttentionAwareDimmingEnabled) ,現在已過時。
使用者可以在 [系統設定] 中指定其慣用的暗灰色行為, (請參閱 啟動 Windows 設定應用程式) 。