語言

MicaController 類別

定義

管理雲母材料的渲染與系統政策。

public ref class MicaController sealed : ISystemBackdropController, IClosable
public ref class MicaController sealed : ISystemBackdropControllerWithTargets, IClosable
public ref class MicaController 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 MicaController 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 MicaController 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 MicaController 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 MicaController : 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 MicaController : 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 MicaController : ISystemBackdropControllerWithTargets, IClosableNotifier, System.IDisposable
function MicaController()
Public NotInheritable Class MicaController
Implements IDisposable, ISystemBackdropController
Public NotInheritable Class MicaController
Implements IDisposable, ISystemBackdropControllerWithTargets
Public NotInheritable Class MicaController
Implements IClosableNotifier, IDisposable, ISystemBackdropControllerWithTargets
繼承
Object Platform::Object IInspectable MicaController
屬性
實作

備註

此課程涵蓋系統背景素材的渲染以及雲 母 材質系統政策的處理。

建構函式

名稱 Description
MicaController()

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

屬性

名稱 Description
FallbackColor

當系統條件無法渲染雲母材質時,取得或設定該純色。

IsClosed

會得到一個表示物件是否已封閉(處置)的值。

Kind

會取得或設定一個值,指定使用哪種雲母材料的變體。

LuminosityOpacity

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

State

取得系統背景控制器的當前狀態。

TintColor

這樣可以設定雲母材質的色調。

TintOpacity

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

方法

名稱 Description
AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

新增指定的系統背景目標。

Close()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

IsSupported()

判斷雲母材料是否支援現有作業系統。

RemoveAllSystemBackdropTargets()

移除所有系統背景目標。

RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

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

ResetProperties()

將自訂屬性重置為系統預設,並自動切換成光暗主題處理。

SetSystemBackdropConfiguration(SystemBackdropConfiguration)

設定應用程式專屬政策套用到系統背景控制器。

SetTarget(CoreWindow, CompositionTarget)

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

SetTarget(WindowId, CompositionTarget)

將此系統背景控制器連接到帶有指定 WindowID 的 HWND OR AppWindow 上。

事件

名稱 Description
Closed

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

FrameworkClosed

當物件在關閉事件發生前被關閉(disposed)時,會發生以通知框架(如 XAML)該物件已關閉。

StateChanged

當系統背景狀態改變時,會發生這種情況。

適用於

另請參閱