ResourceDictionary Class |
Namespace: Windows.UI.Xaml
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.
Name | Description | |
---|---|---|
ResourceDictionary |
Initializes a new instance of the ResourceDictionary class.
|
Name | Description | |
---|---|---|
Add(KeyValuePairObject, Object) |
Adds the specified key and value to the ResourceDictionary.
| |
Add(Object, Object) |
Adds the specified key and value to the ResourceDictionary.
| |
Clear |
Removes all items from this ResourceDictionary.
| |
Contains(KeyValuePairObject, Object) |
Determines whether the ResourceDictionary contains a specified KeyValuePair using the default equality comparer.
| |
Contains(Object) |
Determines whether the System.Collections.IDictionary object contains an element with the specified key.
| |
ContainsKey |
Determines whether the ResourceDictionary contains the specified key.
| |
CopyTo(Array, Int32) | ||
CopyTo(KeyValuePairObject, Object, Int32) |
Copies the ResourceDictionary.KeyCollection
elements to an existing one-dimensional System.Array, starting at the specified
array index.
| |
Equals(Object) | (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the ResourceDictionary.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.) | |
GetVisualStateValue | (Inherited from DependencyObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadLocalValue |
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.) | |
Remove(KeyValuePairObject, Object) |
Removes the specified KeyValuePair from the ResourceDictionary.
| |
Remove(Object) |
Removes the value with the specified key from the ResourceDictionary.
| |
SetBinding |
Attaches a binding to a FrameworkElement, using the provided binding object.
(Inherited from DependencyObject.) | |
SetInheritedValue |
Sets the inherited value of a dependency property on a DependencyObject. Do not use this method.
(Inherited from DependencyObject.) | |
SetLocalValue |
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.) | |
SetValue |
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.) | |
SetVisualStateValue | (Inherited from DependencyObject.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
Count |
Gets the amount of elements in the ResourceDictionary
| |
Dispatcher |
Gets the CoreDispatcher that this object is associated with.
(Inherited from DependencyObject.) | |
IsFixedSize |
Gets a value indicating whether the System.Collections.IDictionary object has a fixed size.
| |
IsReadOnly |
Gets a value indicating whether the ResourceDictionary can be changed or not.
| |
IsSynchronized |
Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).
| |
Item |
Gets or sets the value associated with the given key.
| |
Keys |
Returns a list of the keys in the ResourceDictionary
| |
MergedDictionaries |
Gets a collection of the ResourceDictionary dictionaries that constitute
the various resource dictionaries in the merged dictionaries.
| |
Source |
Gets or sets a Uniform Resource Identifier (URI) that provides the source
location of a merged resource dictionary.
| |
SyncRoot |
Gets an object that can be used to synchronize access to the System.Collections.ICollection.
| |
Values |
Gets an ICollection containing a List of the values in this ResourceDictionary.
|