Share via


ResourceDictionary.Add Método

Definición

Sobrecargas

Add(ResourceDictionary)

Agrega mergedResourceDictionary a los diccionarios combinados en this diccionario de recursos.

Add(Style)

Agrega un estilo implícito a ResourceDictionary.

Add(StyleSheet)

Agrega styleSheet a la this lista de hojas de estilos del diccionario de recursos.

Add(String, Object)

Agrega key y value a ResourceDictionary como par clave-valor.

Add(ResourceDictionary)

Agrega mergedResourceDictionary a los diccionarios combinados en this diccionario de recursos.

public:
 void Add(Microsoft::Maui::Controls::ResourceDictionary ^ mergedResourceDictionary);
public void Add (Microsoft.Maui.Controls.ResourceDictionary mergedResourceDictionary);
member this.Add : Microsoft.Maui.Controls.ResourceDictionary -> unit
Public Sub Add (mergedResourceDictionary As ResourceDictionary)

Parámetros

mergedResourceDictionary
ResourceDictionary

Diccionario de recursos que se va a agregar.

Se aplica a

Add(Style)

Agrega un estilo implícito a ResourceDictionary.

public:
 void Add(Microsoft::Maui::Controls::Style ^ style);
public void Add (Microsoft.Maui.Controls.Style style);
member this.Add : Microsoft.Maui.Controls.Style -> unit
Public Sub Add (style As Style)

Parámetros

style
Style

Estilo implícito que se va a agregar.

Comentarios

Los estilos implícitos se aplican a todos los objetos TargetType coincidentes de VisualElements en los descendientes de este propietario resourceDictionary, a menos que se aplique explícitamente un estilo al elemento.

Los estilos implícitos se agregan a un ResourceDictionary en XAML sin especificar x:Key para el elemento.

Se aplica a

Add(StyleSheet)

Agrega styleSheet a la this lista de hojas de estilos del diccionario de recursos.

public:
 void Add(Microsoft::Maui::Controls::StyleSheets::StyleSheet ^ styleSheet);
public void Add (Microsoft.Maui.Controls.StyleSheets.StyleSheet styleSheet);
member this.Add : Microsoft.Maui.Controls.StyleSheets.StyleSheet -> unit
Public Sub Add (styleSheet As StyleSheet)

Parámetros

styleSheet
StyleSheet

Hoja de estilos que se va a agregar.

Se aplica a

Add(String, Object)

Agrega key y value a ResourceDictionary como par clave-valor.

public:
 virtual void Add(System::String ^ key, System::Object ^ value);
public void Add (string key, object value);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Public Sub Add (key As String, value As Object)

Parámetros

key
String

Identificador que se va a utilizar para recuperar value.

value
Object

Objeto Object asociado a key.

Implementaciones

Se aplica a