示例#1
0
 static GlobalResources()
 {
     lock (lockObject)
     {
         resources.Add(ExtendedDictionaryKeyName, new ResourceDictionary(), true);
     }
 }
示例#2
0
        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);
 }
        public static void SetDictionary(KeyedResourceDictionary resourceDictionary)
        {
            Guard.ArgumentNotNull(resourceDictionary, "resourceDictionary");

            lock (lockObject)
            {
                resources = resourceDictionary;
                resources.Add(ExtendedDictionaryKeyName, new ResourceDictionary(), true);
            }
        }