Element.SetDynamicResource(BindableProperty, String) 方法

定義

BindableProperty使用提供的索引鍵,設定要透過 DynamicResource 更新這個項目的 屬性。

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)

參數

property
BindableProperty

要更新的屬性。

key
String

要求資源的金鑰。

適用於