Beispiel #1
0
 internal void ResetInheritedProperties()
 {
     foreach (DependencyProperty property in INTERNAL_AllInheritedProperties.Keys)
     {
         INTERNAL_PropertyStorage storage;
         if (INTERNAL_PropertyStorageDictionary.TryGetValue(property, out storage))
         {
             INTERNAL_PropertyStore.ResetInheritedValue(storage);
             INTERNAL_PropertyStorageDictionary.Remove(property);
         }
     }
     INTERNAL_AllInheritedProperties.Clear();
 }
Beispiel #2
0
 internal void ResetInheritedProperties()
 {
     if (INTERNAL_AllInheritedProperties != null)
     {
         foreach (DependencyProperty property in INTERNAL_AllInheritedProperties.Keys)
         {
             if (INTERNAL_PropertyStorageDictionary.ContainsKey(property))
             {
                 INTERNAL_PropertyStore.ResetInheritedValue(INTERNAL_PropertyStorageDictionary[property]);
             }
         }
         INTERNAL_AllInheritedProperties.Clear();
     }
 }