SettersExtensions.AddDynamicResource Method

Definition

Adds a Setter with the specified property and dynamic resource key to the collection.

public:
[System::Runtime::CompilerServices::Extension]
 static void AddDynamicResource(System::Collections::Generic::IList<Microsoft::Maui::Controls::Setter ^> ^ setters, Microsoft::Maui::Controls::BindableProperty ^ property, System::String ^ key);
public static void AddDynamicResource(this System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> setters, Microsoft.Maui.Controls.BindableProperty property, string key);
static member AddDynamicResource : System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> * Microsoft.Maui.Controls.BindableProperty * string -> unit
<Extension()>
Public Sub AddDynamicResource (setters As IList(Of Setter), property As BindableProperty, key As String)

Parameters

setters
IList<Setter>

The setter collection.

property
BindableProperty

The bindable property to set.

key
String

The dynamic resource key.

Applies to