ResourceDictionary Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
IResourceDictionary ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Constructors
ResourceDictionary() |
Properties
Count |
The number of entries in the ResourceDictionary. |
Item[String] | |
Keys |
The collection of identifier |
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 |
Add(String, Object) |
Adds |
Add(Style) |
Adds an implicit Style to the ResourceDictionary. |
Add(StyleSheet) |
Adds |
Clear() |
Empties the ResourceDictionary. |
ContainsKey(String) |
Whether the ResourceDictionary contains a key-value pair identified by |
GetEnumerator() |
Returns a IEnumerator<T> of the ResourceDictionary's KeyValuePair<TKey,TValue>s. |
Remove(String) |
Removes the key and value identified by |
SetAndCreateSource<T>(Uri) | |
SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo) |
For internal use by the Microsoft.Maui.Controls platform. |
TryGetValue(String, Object) |