SettersExtensions.AddDynamicResource 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将具有 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
资源键。