共用方式為


SettersExtensions.AddDynamicResource 方法

定義

將具有 DynamicResource 的 Setter 新增至 IList<Setter>

public static void AddDynamicResource (this System.Collections.Generic.IList<Xamarin.Forms.Setter> setters, Xamarin.Forms.BindableProperty property, string key);
static member AddDynamicResource : System.Collections.Generic.IList<Xamarin.Forms.Setter> * Xamarin.Forms.BindableProperty * string -> unit

參數

setters
System.Collections.Generic.IList<Setter>

要新增已編製索引屬性的setter 清單。

property
BindableProperty

要加入的資源。

key
System.String

資源索引鍵。

適用於