ResourceContext 类

定义

封装可能影响资源选择的所有因素。

public ref class ResourceContext sealed
public ref class ResourceContext sealed : IResourceContext
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ResourceContext final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract, 65536)]
class ResourceContext final : IResourceContext
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ResourceContext
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract), 65536)]
public sealed class ResourceContext : IResourceContext
Public NotInheritable Class ResourceContext
Public NotInheritable Class ResourceContext
Implements IResourceContext
继承
Object Platform::Object IInspectable ResourceContext
属性
实现

注解

资源对缩放可能很敏感,应用拥有的不同视图能够在不同的显示设备上同时显示,这些设备可能使用不同的比例。

除非另有说明,否则可以在任何线程上调用此类的方法。

属性

QualifierValues

获取所有受支持限定符的映射,按名称编制索引。

适用于

另请参阅