static GlobalResources() { lock (lockObject) { resources.Add(ExtendedDictionaryKeyName, new ResourceDictionary(), true); } }
public static void SetDictionary(KeyedResourceDictionary resourceDictionary) { Guard.ArgumentNotNull(resourceDictionary, "resourceDictionary"); lock (lockObject) { resources = resourceDictionary; resources.Add(ExtendedDictionaryKeyName, new ResourceDictionary(), true); } }
protected override void Arrange() { base.Arrange(); keyedDictionary = new KeyedResourceDictionary(); keyedDictionary.Add("testResources", new ResourceDictionary(), false); GC.Collect(); }
protected override void Arrange() { base.Arrange(); keyedDictionary = new KeyedResourceDictionary(); keyedDictionary.Add("one", new ResourceDictionary(), false); keyedDictionary.Add("two", new ResourceDictionary(), false); }