DesktopAcrylicController 類別

定義

管理背景壓克力材質的轉譯和系統原則。

public ref class DesktopAcrylicController sealed : ISystemBackdropController, IClosable
public ref class DesktopAcrylicController sealed : ISystemBackdropControllerWithTargets, IClosable
public ref class DesktopAcrylicController sealed : ISystemBackdropControllerWithTargets, IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DesktopAcrylicController final : ISystemBackdropController, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DesktopAcrylicController final : ISystemBackdropControllerWithTargets, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DesktopAcrylicController final : ISystemBackdropControllerWithTargets, IClosableNotifier, IClosable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DesktopAcrylicController : ISystemBackdropController, System.IDisposable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DesktopAcrylicController : ISystemBackdropControllerWithTargets, System.IDisposable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DesktopAcrylicController : ISystemBackdropControllerWithTargets, IClosableNotifier, System.IDisposable
function DesktopAcrylicController()
Public NotInheritable Class DesktopAcrylicController
Implements IDisposable, ISystemBackdropController
Public NotInheritable Class DesktopAcrylicController
Implements IDisposable, ISystemBackdropControllerWithTargets
Public NotInheritable Class DesktopAcrylicController
Implements IClosableNotifier, IDisposable, ISystemBackdropControllerWithTargets
繼承
Object Platform::Object IInspectable DesktopAcrylicController
屬性
實作

備註

這個類別會封裝系統底板材質的轉譯,以及處理背景 壓克力 材質的系統原則。

背景壓克力會顯示目前使用中應用程式後方的桌面桌布和其他視窗。

建構函式

DesktopAcrylicController()

初始化 DesktopAcrylicController 類別的新執行個體。

屬性

FallbackColor

取得或設定系統條件防止轉譯壓克力材質時要使用的純色。

IsClosed

取得值,這個值表示物件是否已關閉 (處置) 。

Kind

取得或設定值,這個值表示使用哪個壓克力材質變體。

LuminosityOpacity

取得或設定色彩亮度不透明度的程度。

State

取得系統底板控制器的目前狀態。

TintColor

取得或設定背景壓克力材質的色彩色調。

TintOpacity

取得或設定色彩色調不透明度的程度。

方法

AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

新增指定的系統底板目標。

Close()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

IsSupported()

判斷目前作業系統是否支援壓克力材質。

RemoveAllSystemBackdropTargets()

移除所有系統背景目標。

RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

移除指定的系統背景目標。

ResetProperties()

將任何自訂屬性重設為其系統預設值,並還原為自動淺色/深色主題處理。

SetSystemBackdropConfiguration(SystemBackdropConfiguration)

設定要套用至系統底板控制器的應用程式特定原則。

SetTarget(CoreWindow, CompositionTarget)

將此系統背景控制器連接到指定的 CoreWindow

SetTarget(WindowId, CompositionTarget)

將此系統基底控制器連線至 HWNDAppWindow ,並使用指定的 WindowId

事件

Closed

發生于物件已關閉 (處置) FrameworkClosed 事件之後,通知應用程式物件已關閉。

FrameworkClosed

發生于物件已關閉 (處置) 關閉事件之前,通知架構 (例如 XAML) 物件已關閉。

StateChanged

發生于系統背景狀態已變更時。

適用於

另請參閱