Home
API
Svg
SvgAttributeCollection
Menu
On this page
SvgAttributeCollection Class
Definition
Show inherited members (46)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Add(System.String, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Clear()
System.Collections.Generic.Dictionary<System.String, System.Object>.ContainsKey(System.String)
System.Collections.Generic.Dictionary<System.String, System.Object>.ContainsValue(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<System.String, System.Object>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Remove(System.String)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.Object>[], System.Int32)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.TryGetValue(System.String, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Comparer
System.Collections.Generic.Dictionary<System.String, System.Object>.Count
System.Collections.Generic.Dictionary<System.String, System.Object>.Item[System.String]
System.Collections.Generic.Dictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Item[System.Object]
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.Values
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Svg.Custom override of the upstream attribute collection.
The upstream implementation returns the exact same deferred paint server instance when an
inheritable property such as fill="currentColor" flows from a parent element to a
child. That is usually fine for concrete colors, but it breaks once the deferred server has
cached the parent's computed color: descendants that override color keep
rendering with the parent's color instead of resolving currentColor for themselves.
We keep the original inheritance logic intact and only clone inherited deferred
currentColor paint servers. Direct properties, such as filter primitives with
lighting-color="currentColor", still resolve against the element that declared the
property, while inherited paint still gets a fresh per-consumer resolution context.
public sealed class SvgAttributeCollection : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.
Constructors (1)
Properties (1)
Methods (2)
Events (1)