ResourceDictionary Class

Definition

An IDictionary that maps identifier strings to arbitrary resource objects.

public ref class ResourceDictionary : Microsoft::Maui::Controls::Internals::IResourceDictionary, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public class ResourceDictionary : Microsoft.Maui.Controls.Internals.IResourceDictionary, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type ResourceDictionary = class
    interface IResourceDictionary
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
Public Class ResourceDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IResourceDictionary
Inheritance
ResourceDictionary
Implements

Constructors

ResourceDictionary()

Properties

Count

The number of entries in the ResourceDictionary.

Item[String]
Keys

The collection of identifier strings that are keys in the ResourceDictionary.

MergedDictionaries

Gets the collection of dictionaries that were merged into this dictionary.

Source

Gets or sets the URI of the merged resource dictionary.

Values

Retrieves the values of the ResourceDictionary.

Methods

Add(ResourceDictionary)

Add mergedResourceDictionary to the merged dictionaries in this resource dictionary.

Add(String, Object)

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

Add(Style)

Adds an implicit Style to the ResourceDictionary.

Add(StyleSheet)

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

Clear()

Empties the ResourceDictionary.

ContainsKey(String)

Whether the ResourceDictionary contains a key-value pair identified by key.

GetEnumerator()

Returns a IEnumerator<T> of the ResourceDictionary's KeyValuePair<TKey,TValue>s.

Remove(String)

Removes the key and value identified by key from the ResourceDictionary.

SetAndCreateSource<T>(Uri)
SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo)

For internal use by the Microsoft.Maui.Controls platform.

TryGetValue(String, Object)

Explicit Interface Implementations

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)
ICollection<KeyValuePair<String,Object>>.IsReadOnly
ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)
IEnumerable.GetEnumerator()
IResourceDictionary.ValuesChanged

Applies to