src/Runtime/Runtime/System.Windows/ResourceDictionary.cs
/// <summary>
/// Removes a specific item from the <see cref="ResourceDictionary"/>.
/// </summary>
/// <param name="key">
/// The key of the item to remove.
/// </param>
/// <exception cref="ArgumentNullException">
/// key is null.
/// </exception>
Removes a specific item from the .
Removes a specific item from the .
public void Remove(object key)
        {
            object resource;
            if (this._baseDictionary.TryGetValue(key, out resource))
            {
                this.RemoveInheritanceContext(resource);
                this._baseDictionary.Remove(key);
                this.NotifyOwners(new ResourcesChangeInfo(key));
            }            
        }
public void Remove ( object key ) { object resource ; if ( this . _baseDictionary . TryGetValue ( key , out resource ) ) { this . RemoveInheritanceContext ( resource ) ; this . _baseDictionary . Remove ( key ) ; this . NotifyOwners ( new ResourcesChangeInfo ( key ) ) ; } }
Removes a specific item from the .
Removes a specific item from the .
// remove the inheritance context from the value, if it came from // this dictionary // Notify owners of the change and fire invalidate if already initialized
key is null.
key is null .
key
object
The key of the item to remove.
The key of the item to remove .