ResourceManagerRequestedEventArgs.CustomResourceManager 属性

定义

获取或设置 WinUI 用于解析当前线程的 MRT 资源的自定义 IResourceManager 实例。

public:
 property IResourceManager ^ CustomResourceManager { IResourceManager ^ get(); void set(IResourceManager ^ value); };
IResourceManager CustomResourceManager();

void CustomResourceManager(IResourceManager value);
public IResourceManager CustomResourceManager { get; set; }
var iResourceManager = resourceManagerRequestedEventArgs.customResourceManager;
resourceManagerRequestedEventArgs.customResourceManager = iResourceManager;
Public Property CustomResourceManager As IResourceManager

属性值

WinUI 用于解析当前线程的 MRT 资源或使用null默认 ResourceManager的 自定义IResourceManager实例。 默认为 null

注解

如果保留 值 null ,则使用框架创建的默认值 ResourceManager

适用于

另请参阅