Click or drag to resize
ResourceDictionary Class
Defines a dictionary that contains resources used by components of the app. This dictionary is oriented toward defining the resources in XAML, and then retrieving them through XAML references via the StaticResource markup extension. Alternatively you can access resources by traversing the dictionary at run time.
Inheritance Hierarchy

Namespace: Windows.UI.Xaml
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public class ResourceDictionary : DependencyObject, 
	IDictionary, ICollection, IDictionary<Object, Object>, 
	ICollection<KeyValuePair<Object, Object>>, IEnumerable<KeyValuePair<Object, Object>>, 
	IEnumerable

The ResourceDictionary type exposes the following members.

Constructors
  NameDescription
Public methodResourceDictionary
Initializes a new instance of the ResourceDictionary class.
Top
Methods
  NameDescription
Public methodAdd(KeyValuePairObject, Object)
Adds the specified key and value to the ResourceDictionary.
Public methodAdd(Object, Object)
Adds the specified key and value to the ResourceDictionary.
Public methodClear
Removes all items from this ResourceDictionary.
Public methodContains(KeyValuePairObject, Object)
Determines whether the ResourceDictionary contains a specified KeyValuePair using the default equality comparer.
Public methodContains(Object)
Determines whether the System.Collections.IDictionary object contains an element with the specified key.
Public methodContainsKey
Determines whether the ResourceDictionary contains the specified key.
Public methodCopyTo(Array, Int32)
Public methodCopyTo(KeyValuePairObject, Object, Int32)
Copies the ResourceDictionary.KeyCollection elements to an existing one-dimensional System.Array, starting at the specified array index.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the ResourceDictionary.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.)
Public methodGetVisualStateValue (Inherited from DependencyObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadLocalValue
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.)
Public methodRemove(KeyValuePairObject, Object)
Removes the specified KeyValuePair from the ResourceDictionary.
Public methodRemove(Object)
Removes the value with the specified key from the ResourceDictionary.
Public methodSetBinding
Attaches a binding to a FrameworkElement, using the provided binding object.
(Inherited from DependencyObject.)
Public methodSetInheritedValue
Sets the inherited value of a dependency property on a DependencyObject. Do not use this method.
(Inherited from DependencyObject.)
Public methodSetLocalValue
Sets the local value of a dependency property on a DependencyObject while not overriding a hypothetical Binding (example: when the user writes in a TextBox with a two way Binding on its Text property).
(Inherited from DependencyObject.)
Public methodSetValue
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.)
Public methodSetVisualStateValue (Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
Top
Properties
  NameDescription
Public propertyCount
Gets the amount of elements in the ResourceDictionary
Public propertyDispatcher
Gets the CoreDispatcher that this object is associated with.
(Inherited from DependencyObject.)
Public propertyIsFixedSize
Gets a value indicating whether the System.Collections.IDictionary object has a fixed size.
Public propertyIsReadOnly
Gets a value indicating whether the ResourceDictionary can be changed or not.
Public propertyIsSynchronized
Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).
Public propertyItem
Gets or sets the value associated with the given key.
Public propertyKeys
Returns a list of the keys in the ResourceDictionary
Public propertyMergedDictionaries
Gets a collection of the ResourceDictionary dictionaries that constitute the various resource dictionaries in the merged dictionaries.
Public propertySource
Gets or sets a Uniform Resource Identifier (URI) that provides the source location of a merged resource dictionary.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the System.Collections.ICollection.
Public propertyValues
Gets an ICollection containing a List of the values in this ResourceDictionary.
Top
See Also