DesktopAcrylicController 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
管理背景亚克力材料的渲染和系统策略。
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
- 继承
- 属性
- 实现
注解
此类封装系统背景材料的呈现以及后台 亚克力 材料的系统策略处理。
背景亚克力显示当前活动应用后面的桌面壁纸和其他窗口。
构造函数
DesktopAcrylicController() |
初始化 |
属性
FallbackColor |
获取或设置系统条件阻止呈现亚克力材料时要使用的纯色。 |
IsClosed |
获取一个值,该值指示对象是否关闭 (释放) 。 |
Kind |
获取或设置一个值,该值指示所使用的亚克力材料变体。 |
LuminosityOpacity |
获取或设置颜色亮度的不透明度。 |
State |
获取系统背景控制器的当前状态。 |
TintColor |
获取或设置背景亚克力材料的颜色色调。 |
TintOpacity |
获取或设置颜色色调的不透明度程度。 |
方法
AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
添加指定的系统背景目标。 |
Close() |
执行与释放或重置非托管资源关联的应用程序定义的任务。 |
Dispose() |
执行与释放或重置非托管资源关联的应用程序定义的任务。 |
IsSupported() |
确定当前操作系统上是否支持亚克力材料。 |
RemoveAllSystemBackdropTargets() |
删除所有系统后台目标。 |
RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
删除指定的系统后台目标。 |
ResetProperties() |
将所有自定义属性重置为其系统默认值,并还原为自动浅色/深色主题处理。 |
SetSystemBackdropConfiguration(SystemBackdropConfiguration) |
设置要应用于系统背景控制器的应用特定策略。 |
SetTarget(CoreWindow, CompositionTarget) |
将此系统背景控制器连接到指定的 |
SetTarget(WindowId, CompositionTarget) |
将此系统背景控制器连接到 具有 |
事件
Closed |
当对象已关闭 (释放) FrameworkClosed 事件之后,通知应用对象已关闭时发生。 |
FrameworkClosed |
当对象已关闭 (释放) ,在 Closed 事件之前发生,以通知框架 ((如 XAML) 对象已关闭)。 |
StateChanged |
当系统背景的状态发生更改时发生。 |