SettersExtensions.AddDynamicResource 方法

定义

将具有 DynamicResource 的资源库添加到 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>

要添加键控属性的资源库列表。

property
BindableProperty

要添加的资源。

key
System.String

资源键。

适用于