ResourceDictionary.Add ResourceDictionary.Add Method

Definition

Overloads

Add(ResourceDictionary) Add(ResourceDictionary)

Add mergedResourceDictionary to the merged dictionaries in this resource dictionary.

Add(Style) Add(Style)

Adds an implicit Style to the ResourceDictionary.

Add(StyleSheet) Add(StyleSheet)

Adds styleSheet tho this resource dictionary's list of style sheets.

Add(String, Object) Add(String, Object)

Adds key and value to the ResourceDictionary as a key-value pair.

Add(ResourceDictionary) Add(ResourceDictionary)

Add mergedResourceDictionary to the merged dictionaries in this resource dictionary.

public void Add (Xamarin.Forms.ResourceDictionary mergedResourceDictionary);
member this.Add : Xamarin.Forms.ResourceDictionary -> unit
Parameters
mergedResourceDictionary
ResourceDictionary ResourceDictionary

The resource dictionary to add.

Add(Style) Add(Style)

Adds an implicit Style to the ResourceDictionary.

public void Add (Xamarin.Forms.Style style);
member this.Add : Xamarin.Forms.Style -> unit
Parameters
style
Style Style

The implicit style to add.

Remarks

Implicit Styles are applied to all VisualElements matching TargetType in the descendants of this ResourceDictionary owner, unless a Style is explicitely applied to the Element.

Implicit Styles are added to a ResourceDictionary in XAML by not specifying an x:Key for the Element.

Add(StyleSheet) Add(StyleSheet)

Adds styleSheet tho this resource dictionary's list of style sheets.

public void Add (Xamarin.Forms.StyleSheets.StyleSheet styleSheet);
member this.Add : Xamarin.Forms.StyleSheets.StyleSheet -> unit
Parameters
styleSheet
StyleSheet StyleSheet

The style sheet to add

Add(String, Object) Add(String, Object)

Adds key and value to the ResourceDictionary as a key-value pair.

public void Add (string key, object value);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Parameters
key
String String

The identifier to be used to retrieve the value.

value
Object Object

The Object associated with the key.

Applies to