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
属性
实现

注解

此类封装系统背景材料的呈现以及 云母 材料的系统策略处理。

构造函数

MicaController()

初始化 MicaController 类的新实例。

属性

FallbackColor

获取或设置系统条件阻止呈现云母材料时要使用的纯色。

IsClosed

获取一个值,该值指示是否关闭对象 (释放) 。

Kind

获取或设置一个值,该值指定使用哪个 Mica 材料的变体。

LuminosityOpacity

获取或设置颜色发光度的不透明度。

State

获取系统背景控制器的当前状态。

TintColor

获取或设置云母材料的颜色色调。

TintOpacity

获取或设置颜色色调的不透明度。

方法

AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

添加指定的系统背景目标。

Close()

执行与释放或重置非托管资源关联的应用程序定义的任务。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

IsSupported()

确定当前操作系统是否支持云母材料。

RemoveAllSystemBackdropTargets()

删除所有系统后台目标。

RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop)

删除指定的系统后台目标。

ResetProperties()

将所有自定义属性重置为其系统默认值,并还原为自动浅色/深色主题处理。

SetSystemBackdropConfiguration(SystemBackdropConfiguration)

设置要应用于系统背景控制器的应用特定策略。

SetTarget(CoreWindow, CompositionTarget)

将此系统背景控制器连接到指定的 CoreWindow

SetTarget(WindowId, CompositionTarget)

将此系统背景控制器连接到HWND具有指定 WindowId 的 或 AppWindow

事件

Closed

当对象已关闭 (释放) FrameworkClosed 事件之后,通知应用对象已关闭时发生。

FrameworkClosed

当对象已关闭 (释放) Closed 事件之前 发生,以通知框架 ((如 XAML) )对象已关闭。

StateChanged

当系统背景的状态发生更改时发生。

适用于

另请参阅