Element.SetDynamicResource(BindableProperty, String) Method

Definition

Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key.

public:
 void SetDynamicResource(Microsoft::Maui::Controls::BindableProperty ^ property, System::String ^ key);
public void SetDynamicResource (Microsoft.Maui.Controls.BindableProperty property, string key);
override this.SetDynamicResource : Microsoft.Maui.Controls.BindableProperty * string -> unit
Public Sub SetDynamicResource (property As BindableProperty, key As String)

Parameters

property
BindableProperty

The property to be updated.

key
String

The key for the requested resource.

Applies to