Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceDictionary Members

Provides a hashtable / dictionary implementation that contains WPF resources used by components and other elements of a WPF application.

The following tables list the members exposed by the ResourceDictionary type.

  Name Description
Public method ResourceDictionary Initializes a new instance of the ResourceDictionary class.
Top

  Name Description
Public property Count Gets the number of entries in the base ResourceDictionary.
Public property IsFixedSize Gets whether this ResourceDictionary is fixed-size.
Public property IsReadOnly Gets whether this ResourceDictionary is read-only.
Public property Item Gets or sets the value associated with the given key.
Public property Keys Gets a collection of all keys contained in this ResourceDictionary.
Public property MergedDictionaries Gets a collection of the ResourceDictionary dictionaries that constitute the various resource dictionaries in the merged dictionaries.
Public property Source Gets or sets the uniform resource identifier (URI) to load resources from.
Public property Values Gets a collection of all values associated with keys contained in this ResourceDictionary.
Top

(see also Protected Methods )
  Name Description
Public method Add Adds a resource by key to this ResourceDictionary.
Public method BeginInit Begins the initialization phase for this ResourceDictionary.
Public method Clear Clears all keys (and values) in the base ResourceDictionary. This does not clear any merged dictionary items.
Public method Contains Determines whether the ResourceDictionary contains an element with the specified key.
Public method CopyTo Copies the ResourceDictionary elements to a one-dimensional DictionaryEntry at the specified index.
Public method EndInit Ends the initialization phase, and invalidates the previous tree such that all changes made to keys during the initialization phase can be accounted for.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindName Not supported by this Dictionary implementation.
Public method GetEnumerator Returns an IDictionaryEnumerator that can be used to iterate through the ResourceDictionary.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RegisterName Not supported by this Dictionary implementation.
Public method Remove Removes the entry with the specified key from the base dictionary.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method UnregisterName Not supported by this Dictionary implementation.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.Collections.ICollection.CopyTo This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. In most cases, you should use CopyTo instead.
Explicit interface implementation Method System.Collections.IEnumerable.GetEnumerator This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. In most cases, you should use GetEnumerator instead.
Explicit interface implementation Property System.Collections.ICollection.IsSynchronized Gets a value that declares whether access to ResourceDictionary is thread-safe for callers.
Explicit interface implementation Property System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to ResourceDictionary.
Explicit interface implementation Property System.Windows.Markup.IUriContext.BaseUri This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top

Community Additions

Show:
© 2014 Microsoft