แก้ไข

แชร์ผ่าน


ResourceDictionary.Keys Property

Definition

Gets a collection of all keys contained in this ResourceDictionary.

public:
 property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public ReadOnly Property Keys As ICollection

Property Value

The collection of all keys.

Implements

Remarks

This property exists because it is required by IDictionary, but Keys generally is not useful for most ResourceDictionary scenarios.

The returned keys do not include keys within the MergedDictionaries. Also the keys collection is a snapshot of the keys in the base dictionary. If you subsequently make changes to this ResourceDictionary, a stored Keys will not reflect the changes.

Applies to

See also