-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.Resources.CustomXamlResourceLoader.GetResource(System.String,System.String,System.String,System.String) |
winrt method |
When overridden in a derived class, specifies the logic of resource lookup for this CustomXamlResourceLoader. Given a resource ID and some type information about the expected result, returns the requested resource.
The string-form key of the resource to get.
The expected type of the resource.
The name of the property that serves as the key in the custom resource lookup logic.
The type of the property that serves as the key, with type represented as a string.
The retrieved resource.
This method will be called by the Windows Runtime XAML parser whenever it encounters a {CustomResource} markup extension usage in markup. The resourceId comes from the default key markup extension argument to {CustomResource} markup extension, and the other input parameters come from context, such as which property the usage is applied to.