Skip to main content
All docs
V25.1
  • LWThemeDictionary Members

    A ResourceDictionary descendant that allows to switch sources depending on the applied lightweight theme.

    Constructors

    Name Description
    LWThemeDictionary() Initializes a new instance of the LWThemeDictionary class.

    Properties

    Name Description
    Count Gets the number of entries in the base ResourceDictionary. Inherited from ResourceDictionary.
    Default Gets or sets the default source for all lightweight themes. This is a dependency property.
    DeferrableContent Gets or sets the deferrable content for this resource dictionary. Inherited from ResourceDictionary.
    InvalidatesImplicitDataTemplateResources

    Gets or sets a value that indicates whether the invalidations fired by the ResourceDictionary object cause ContentPresenter objects to reevaluate their choice of template. The invalidations happen when an implicit data template resource changes.

    Inherited from ResourceDictionary.
    IsFixedSize Gets whether this ResourceDictionary is fixed-size. Inherited from ResourceDictionary.
    IsReadOnly Gets whether this ResourceDictionary is read-only. Inherited from ResourceDictionary.
    Item[Object] Gets or sets the value associated with the given key. Inherited from ResourceDictionary.
    Keys Gets a collection of all keys contained in this ResourceDictionary. Inherited from ResourceDictionary.
    MergedDictionaries Gets a collection of the ResourceDictionary dictionaries that constitute the various resource dictionaries in the merged dictionaries. Inherited from ResourceDictionary.
    Office2019 Gets or sets the source for lightweight Office2019 themes. This is a dependency property.
    Office2019Black Gets or sets the source for the lightweight Office2019Black theme. This is a dependency property.
    Office2019Colorful Gets or sets the source for the lightweight Office2019Colorful theme. This is a dependency property.
    Office2019HighContrast Gets or sets the source for the lightweight Office2019HighContrast theme. This is a dependency property.
    ReloadOnThemeChange Gets or sets whether to reload the app when the theme is changed. This is a dependency property.
    Source Obsolete. This API is obsolete now.
    ICollection.IsSynchronized For a description of this member, see IsSynchronized. Inherited from ResourceDictionary.
    ICollection.SyncRoot For a description of this member, see SyncRoot. Inherited from ResourceDictionary.
    IUriContext.BaseUri For a description of this member, see BaseUri. Inherited from ResourceDictionary.
    Values Gets a collection of all values associated with keys contained in this ResourceDictionary. Inherited from ResourceDictionary.
    VS2019 Gets or sets the source for lightweight VS2019 themes. This is a dependency property.
    VS2019Blue Gets or sets the source for the lightweight VS2019Blue theme. This is a dependency property.
    VS2019Dark Gets or sets the source for the lightweight VS2019Dark theme. This is a dependency property.
    VS2019Light Gets or sets the source for the lightweight VS2019Light theme. This is a dependency property.
    Win10 Gets or sets the source for lightweight Win10 themes. This is a dependency property.
    Win10Dark Gets or sets the source for the lightweight Win10Dark theme. This is a dependency property.
    Win10Light Gets or sets the source for the lightweight Win10Light theme. This is a dependency property.
    Win11 Gets or sets the source for lightweight Win11 themes. This is a dependency property.
    Win11Dark Gets or sets the source for the lightweight Win11Dark theme. This is a dependency property.
    Win11Light Gets or sets the source for the lightweight Win11Light theme. This is a dependency property.

    Methods

    Name Description
    Add(Object, Object) Adds a resource by key to this ResourceDictionary. Inherited from ResourceDictionary.
    BeginInit() Begins the initialization phase for this ResourceDictionary. Inherited from ResourceDictionary.
    Clear() Clears all keys (and values) in the base ResourceDictionary. This does not clear any merged dictionary items. Inherited from ResourceDictionary.
    Contains(Object) Determines whether the ResourceDictionary contains an element with the specified key. Inherited from ResourceDictionary.
    CopyTo(DictionaryEntry[], Int32) Copies the ResourceDictionary elements to a one-dimensional DictionaryEntry at the specified index. Inherited from ResourceDictionary.
    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. Inherited from ResourceDictionary.
    Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
    Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
    FindName(String) Not supported by this Dictionary implementation. Inherited from ResourceDictionary.
    GetEnumerator() Returns an IDictionaryEnumerator that can be used to iterate through the ResourceDictionary. Inherited from ResourceDictionary.
    GetHashCode() Serves as the default hash function. Inherited from Object.
    GetType() Gets the Type of the current instance. Inherited from Object.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    OnGettingValue(Object, Object, Boolean) protected Occurs when the ResourceDictionary receives a request for a resource. Inherited from ResourceDictionary.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    RegisterName(String, Object) Not supported by this Dictionary implementation. Inherited from ResourceDictionary.
    Remove(Object) Removes the entry with the specified key from the base dictionary. Inherited from ResourceDictionary.
    ICollection.CopyTo(Array, Int32) For a description of this member, see CopyTo(Array, Int32). Inherited from ResourceDictionary.
    IEnumerable.GetEnumerator() For a description of this member, see GetEnumerator(). Inherited from ResourceDictionary.
    ToString() Returns a string that represents the current object. Inherited from Object.
    UnregisterName(String) Not supported by this Dictionary implementation. Inherited from ResourceDictionary.
    See Also