ResourceDictionary Class

namespace Noesis | MSDN

Provides a hash table implementation that contains resources used by the UI.

ResourceDictionaries are implicitly created when using the Resources property of tree elements. But a resource dictionary can also be declared as a single XAML file for later runtime load or for merging it into the Application or a FrameworkElement.

  <SolidColorBrush x:Key="NormalBrush" Color="Silver"/>
  <Style TargetType="Button">
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="Background" Value="Crimson"/>

Inheritance Hierarchy


INDEX Class Hierarchy Index


Name Description
RO MergedDictionaries Gets the collection of merged dictionaries
None Source Get or set the source file for this dictionary

DP_ Dependency Property      RO_ Read-only


Name Description
Add Adds an element with the provided key and value to the dictionary
Clear Removes all elements from the dictionary
Contains Determines whether the dictionary contains an element with the specified key
Count Returns the number of entries of the base dictionary (excluding merged dictionaries)
Find Looks for an element in the dictionary. Returns true if element was found, false otherwise
Get Gets the value stored for the specified key
HasResourcesDefined Indicates if this dictionary or any of the merged dictionaries contains a resource
IsReadOnly Indicates if this dictionary is read-only
Remove Removes the element with the specified key from the dictionary
Set Sets the element with the specified key

From BaseDictionary

Name Description
RemoveDictionaryChangedListeners Removes listeners subscribed to DictionaryChanged event


ResourceDictionary has no events

© 2017 Noesis Technologies