Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DynamicResourceExtension Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides a XAML markup extension that creates a DynamicResource for dynamic resource lookup.

public ref class DynamicResourceExtension sealed : Microsoft::Maui::Controls::Xaml::IMarkupExtension<Microsoft::Maui::Controls::Internals::DynamicResource ^>
[Microsoft.Maui.Controls.ContentProperty("Key")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })]
public sealed class DynamicResourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.Internals.DynamicResource>
[Microsoft.Maui.Controls.ContentProperty("Key")]
public sealed class DynamicResourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.Internals.DynamicResource>
[<Microsoft.Maui.Controls.ContentProperty("Key")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })>]
type DynamicResourceExtension = class
 interface IMarkupExtension<DynamicResource>
 interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Key")>]
type DynamicResourceExtension = class
 interface IMarkupExtension<DynamicResource>
 interface IMarkupExtension
Public NotInheritable Class DynamicResourceExtension
Implements IMarkupExtension(Of DynamicResource)
Inheritance
DynamicResourceExtension
Attributes
Implements

Constructors

Name Description
DynamicResourceExtension()

Properties

Name Description
Key

Gets or sets the key of the dynamic resource to retrieve.

Methods

Name Description
ProvideValue(IServiceProvider)

Explicit Interface Implementations

Name Description
IMarkupExtension<DynamicResource>.ProvideValue(IServiceProvider)

Applies to


Feedback

Was this page helpful?