MicaController 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
管理 Mica 材質的轉譯和系統原則。
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
- 繼承
- 屬性
- 實作
備註
這個類別會封裝系統基底材質的轉譯,以及處理 Mica 材質的系統原則。
建構函式
MicaController() |
初始化 |
屬性
FallbackColor |
取得或設定系統條件防止轉譯 Mica 材質時要使用的純色。 |
IsClosed |
取得值,這個值表示物件是否已關閉 (處置) 。 |
Kind |
取得或設定值,指定使用 Mica 材質的變化。 |
LuminosityOpacity |
取得或設定色彩亮度不透明度的程度。 |
State |
取得系統底板控制器的目前狀態。 |
TintColor |
取得或設定 Mica 材質的色彩色調。 |
TintOpacity |
取得或設定色彩色調不透明度的程度。 |
方法
AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
新增指定的系統底板目標。 |
Close() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
IsSupported() |
判斷目前作業系統是否支援 Mica 材質。 |
RemoveAllSystemBackdropTargets() |
移除所有系統背景目標。 |
RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
移除指定的系統背景目標。 |
ResetProperties() |
將任何自訂屬性重設為其系統預設值,並還原為自動淺色/深色主題處理。 |
SetSystemBackdropConfiguration(SystemBackdropConfiguration) |
設定要套用至系統底板控制器的應用程式特定原則。 |
SetTarget(CoreWindow, CompositionTarget) |
將此系統背景控制器連接到指定的 |
SetTarget(WindowId, CompositionTarget) |
將此系統基底控制器連線至 |
事件
Closed |
發生于物件已關閉 (處置) FrameworkClosed 事件之後,通知應用程式物件已關閉。 |
FrameworkClosed | |
StateChanged |
發生于系統背景狀態已變更時。 |