1 type derived from ResourceDictionary
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (1)
12internal class PropertyInspectorFontAndColorDictionary : ResourceDictionary
11 instantiations of ResourceDictionary
PresentationFramework (7)
src\Framework\System\Windows\Application.cs (1)
1021_resources = new ResourceDictionary();
src\Framework\System\Windows\FrameworkContentElement.cs (1)
282resources = new ResourceDictionary();
src\Framework\System\Windows\FrameworkElement.cs (1)
690resources = new ResourceDictionary();
src\Framework\System\Windows\FrameworkTemplate.cs (1)
229_resources = new ResourceDictionary();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8413bamlType.DefaultConstructor = delegate() { return new System.Windows.ResourceDictionary(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1505case KnownElements.ResourceDictionary: o = new System.Windows.ResourceDictionary(); break;
src\Framework\System\Windows\Style.cs (1)
306_resources = new ResourceDictionary();
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\CachedResourceDictionaryExtension.cs (1)
27resourceDictionary = new ResourceDictionary();
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (1)
630ResourceDictionary resources = new ResourceDictionary();
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (2)
133WorkflowDesignerIcons.iconResourceDictionary = new ResourceDictionary(); 169WorkflowDesignerIcons.iconResourceDictionary = new ResourceDictionary();
207 references to ResourceDictionary
PresentationFramework (173)
src\Framework\System\Windows\Application.cs (8)
370ResourceDictionary resources = _resources; 403ResourceDictionary resources = _resources; 431ResourceDictionary resources = _resources; 1005public ResourceDictionary Resources 1012ResourceDictionary resources; 1038ResourceDictionary oldValue; 1073ResourceDictionary IHaveResources.Resources 2792private ResourceDictionary _resources;
src\Framework\System\Windows\DeferrableContentConverter.cs (2)
63ResourceDictionary dictionary = ipvt.TargetObject as ResourceDictionary;
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (2)
430internal ElementContentContainer(Type elementType, PropertyRecord[] localValues, ResourceDictionary resources, ContentContainer childContainer) 477private readonly ResourceDictionary _resources;
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
107private readonly ResourceDictionary _resources;
src\Framework\System\Windows\FrameworkContentElement.cs (5)
265ResourceDictionary resources = ResourcesField.GetValue(this); 275public ResourceDictionary Resources 279ResourceDictionary resources = ResourcesField.GetValue(this); 291ResourceDictionary oldValue = ResourcesField.GetValue(this); 2200private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
src\Framework\System\Windows\FrameworkElement.cs (17)
673ResourceDictionary resources = ResourcesField.GetValue(this); 683public ResourceDictionary Resources 687ResourceDictionary resources = ResourcesField.GetValue(this); 710ResourceDictionary oldValue = ResourcesField.GetValue(this); 766ResourceDictionary IHaveResources.Resources 1489ResourceDictionary table; 1605ResourceDictionary table, ArrayList keys, int exactMatch, ref int bestMatch) 1633private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1635ResourceDictionary table = null; 1657private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1659ResourceDictionary table = null; 1697private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1699ResourceDictionary table = null; 1737private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1739ResourceDictionary table = null; 6400internal static readonly UncommonField<ResourceDictionary> ResourcesField = new UncommonField<ResourceDictionary>();
src\Framework\System\Windows\FrameworkTemplate.cs (4)
220public ResourceDictionary Resources 262ResourceDictionary IHaveResources.Resources 591if (typeof(ResourceDictionary).IsAssignableFrom(type.UnderlyingType)) 1565internal ResourceDictionary _resources = null;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (1)
173ResourceDictionary resources = ResourcesField.GetValue(this);
src\Framework\System\Windows\Generated\FrameworkElement.cs (1)
173ResourceDictionary resources = ResourcesField.GetValue(this);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
616case 524: t = () => typeof(ResourceDictionary); break;
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
690= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (22)
6322typeof(System.Windows.ResourceDictionary), // type 6327bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }; 6694Type type = typeof(System.Windows.ResourceDictionary); 6696this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType 6703bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ResourceDictionary)target).DeferrableContent = (System.Windows.DeferrableContent)value; }; 6704bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).DeferrableContent; }; 6806typeof(System.Windows.ResourceDictionary), // type 6811bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkContentElement)target).Resources = (System.Windows.ResourceDictionary)value; }; 6824typeof(System.Windows.ResourceDictionary), // type 6829bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; }; 6842typeof(System.Windows.ResourceDictionary), // type 6847bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkTemplate)target).Resources = (System.Windows.ResourceDictionary)value; }; 6860typeof(System.Windows.ResourceDictionary), // type 6865bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Application)target).Resources = (System.Windows.ResourceDictionary)value; }; 7483Type type = typeof(System.Windows.ResourceDictionary); 7485this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType 7492bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ResourceDictionary)target).Source = (System.Uri)value; }; 7493bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).Source; }; 7519Type type = typeof(System.Windows.ResourceDictionary); 7521this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType 7523typeof(System.Collections.ObjectModel.Collection<System.Windows.ResourceDictionary>), // type 7527bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).MergedDictionaries; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8411typeof(System.Windows.ResourceDictionary),
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
370= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (3)
94if (UnderlyingType == typeof(ResourceDictionary)) 98else if (typeof(ResourceDictionary).IsAssignableFrom(UnderlyingType)) 105return method.DeclaringType != typeof(ResourceDictionary);
src\Framework\System\Windows\Markup\BamlCollectionHolder.cs (2)
86return _resourcesParent != null ? typeof(ResourceDictionary) : PropertyDefinition.PropertyType; 130_resourcesParent.Resources = (ResourceDictionary)Collection;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (5)
1152if (element is ResourceDictionary) 1719ResourceDictionary dictionary = GetDictionaryFromContext(CurrentContext, true /*toInsert*/) as ResourceDictionary; 4092ResourceDictionary resourceDictionary; 4093if (allowDeferredResourceReference && (resourceDictionary = dictionary as ResourceDictionary) != null)
src\Framework\System\Windows\Markup\IHaveResources.cs (1)
24ResourceDictionary Resources { get; set; }
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6068case KnownElements.ResourceDictionary: t = typeof(System.Windows.ResourceDictionary); break;
src\Framework\System\Windows\ResourceDictionary.cs (27)
118public Collection<ResourceDictionary> MergedDictionaries 228ResourceDictionary loadedRD = MimeObjectFactory.GetObjectAndCloseStream(s, contentType, uri, false, false, false /*allowAsync*/, false /*isJournalNavigation*/, out asyncObjectConverter) 229as ResourceDictionary; 519ResourceDictionary mergedDictionary = MergedDictionaries[i]; 566ResourceDictionary mergedDictionary = MergedDictionaries[i]; 742ResourceDictionary mergedDictionary = MergedDictionaries[i]; 778ResourceDictionary mergedDictionary = MergedDictionaries[i]; 1835List<ResourceDictionary> oldDictionaries = null; 1836List<ResourceDictionary> newDictionaries = null; 1837ResourceDictionary mergedDictionary; 1855oldDictionaries = new List<ResourceDictionary>(e.OldItems.Count); 1859mergedDictionary = (ResourceDictionary)e.OldItems[i]; 1873newDictionaries = new List<ResourceDictionary>(e.NewItems.Count); 1877mergedDictionary = (ResourceDictionary)e.NewItems[i]; 1957private void PropagateParentOwners(ResourceDictionary mergedDictionary) 2018internal void RemoveParentOwners(ResourceDictionary mergedDictionary) 2055private bool ContainsCycle(ResourceDictionary origin) 2059ResourceDictionary mergedDictionary = MergedDictionaries[i]; 2104internal ResourceDictionaryEnumerator(ResourceDictionary owner) 2164private ResourceDictionary _owner; 2175internal ResourceValuesEnumerator(ResourceDictionary owner) 2205private ResourceDictionary _owner; 2216internal ResourceValuesCollection(ResourceDictionary owner) 2264private ResourceDictionary _owner; 2503private void CopyDeferredContentFrom(ResourceDictionary loadedRD) 2518private void MoveDeferredResourceReferencesFrom(ResourceDictionary loadedRD) 2597private ObservableCollection<ResourceDictionary> _mergedDictionaries = null;
src\Framework\System\Windows\ResourceDictionaryCollection.cs (5)
8internal class ResourceDictionaryCollection : ObservableCollection<ResourceDictionary> 12internal ResourceDictionaryCollection(ResourceDictionary owner) 41protected override void InsertItem(int index, ResourceDictionary item) 55protected override void SetItem(int index, ResourceDictionary item) 69private ResourceDictionary _owner;
src\Framework\System\Windows\ResourcesChangeInfo.cs (10)
45internal ResourcesChangeInfo(ResourceDictionary oldDictionary, ResourceDictionary newDictionary) 50_oldDictionaries = new List<ResourceDictionary>(1); 57_newDictionaries = new List<ResourceDictionary>(1); 71List<ResourceDictionary> oldDictionaries, 72List<ResourceDictionary> newDictionaries, 267foreach (ResourceDictionary rd in _oldDictionaries) 279foreach (ResourceDictionary rd in _newDictionaries) 332private List<ResourceDictionary> _oldDictionaries; 333private List<ResourceDictionary> _newDictionaries;
src\Framework\System\Windows\StaticResourceExtension.cs (9)
148ResourceDictionary dict = deferredReference.Dictionary; 207private ResourceDictionary FindTheResourceDictionary(IServiceProvider serviceProvider, bool isDeferredContentSearch) 239XamlType[] types = new XamlType[1] { schemaContext.GetXamlType(typeof(ResourceDictionary)) }; 261if (ambientValue.Value is ResourceDictionary) 263var resourceDictionary = (ResourceDictionary)ambientValue.Value; 272var resourceDictionary = style.FindResourceDictionary(ResourceKey); 284ResourceDictionary dictionaryWithKey = FindTheResourceDictionary(serviceProvider, /* isDeferredContentSearch */ true); 333ResourceDictionary dictionaryWithKey = FindTheResourceDictionary(serviceProvider, /* isDeferredContentSearch */ false);
src\Framework\System\Windows\Style.cs (4)
297public ResourceDictionary Resources 340ResourceDictionary IHaveResources.Resources 365internal ResourceDictionary FindResourceDictionary(object resourceKey) 979internal ResourceDictionary _resources = null;
src\Framework\System\Windows\StyleHelper.cs (13)
348ResourceDictionary resources, 3469List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3470List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3517List<ResourceDictionary> oldResourceTable = GetResourceDictionaryFromTemplate(oldTemplate); 3518List<ResourceDictionary> newResourceTable = GetResourceDictionaryFromTemplate(newTemplate); 3532private static void SetShouldLookupImplicitStyles(FrameworkObject fo, List<ResourceDictionary> dictionaries) 3550private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style) 3552List<ResourceDictionary> dictionaries = null; 3560dictionaries = new List<ResourceDictionary>(1); 3575private static List<ResourceDictionary> GetResourceDictionaryFromTemplate( object template ) 3577ResourceDictionary resources = null; 3586List<ResourceDictionary> table = new List<ResourceDictionary>(1);
src\Framework\System\Windows\SystemResources.cs (18)
201/// Enumerates all themed <see cref="ResourceDictionary"/> instances 232/// Enumerates all generic <see cref="ResourceDictionary"/> instances 377ResourceDictionary dictionary = dictionaries.LoadThemedDictionary(isTraceEnabled); 418ResourceDictionary dictionary, 610internal ResourceDictionary LoadThemedDictionary(bool isTraceEnabled) 627ResourceDictionary dictionary = null; 699internal ResourceDictionary LoadGenericDictionary(bool isTraceEnabled) 715ResourceDictionary dictionary = null; 912private ResourceDictionary LoadDictionary(Assembly assembly, string assemblyName, string resourceName, bool isTraceEnabled, out Uri dictionarySourceUri) 914ResourceDictionary dictionary = null; 997dictionary = (ResourceDictionary)writer.Result; 1015private ResourceDictionary _genericDictionary; 1016private ResourceDictionary _themedDictionary; 1799internal DeferredResourceReference(ResourceDictionary dictionary, object key) 1918internal ResourceDictionary Dictionary 1944private ResourceDictionary _dictionary; 1955internal DeferredAppResourceReference(ResourceDictionary dictionary, object resourceKey) 1988internal DeferredThemeResourceReference(ResourceDictionary dictionary, object resourceKey, bool canCacheAsThemeResource)
src\Framework\System\Windows\ThemeDictionaryExtension.cs (8)
96ResourceDictionary dictionary = targetObject as ResourceDictionary; 134internal static Uri GenerateFallbackUri(ResourceDictionary dictionary, string resourceName) 147if ((ResourceDictionary)info.DictionaryReference.Target == dictionary) 179_sourceProperty = typeof(ResourceDictionary).GetProperty("Source"); 197private static void Register(ResourceDictionary dictionary, string assemblyName) 255ResourceDictionary dictionary = (ResourceDictionary)info.DictionaryReference.Target;
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
123ResourceDictionary icons = EditorResources.GetIcons();
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (1)
126ResourceDictionary icons = EditorResources.GetIcons();
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
75ResourceDictionary icons = EditorResources.GetIcons();
System\ServiceModel\Activities\Presentation\MessagingContentPropertyEditorResources.xaml.cs (3)
16private static ResourceDictionary resources; 17internal static ResourceDictionary GetResources() 26resources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
System.Activities.Presentation (28)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (3)
21private static ResourceDictionary sharedResources; 86public static ResourceDictionary GetResources() 96sharedResources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
System.Activities.Presentation\System\Activities\Presentation\CachedResourceDictionaryExtension.cs (4)
14[MarkupExtensionReturnType(typeof(ResourceDictionary))] 17static Dictionary<Uri, ResourceDictionary> Cache = new Dictionary<Uri, ResourceDictionary>(); 23ResourceDictionary resourceDictionary = null;
System.Activities.Presentation\System\Activities\Presentation\Utility\IconHelper.cs (1)
99var resourceDictionary = EditorResources.GetIcons();
System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (5)
16private static ResourceDictionary resources; 17internal static ResourceDictionary GetResources() 26resources = (ResourceDictionary)Application.LoadComponent(resourceLocator); 31static ResourceDictionary icons; 32internal static ResourceDictionary GetIcons()
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (9)
17static ResourceDictionary defaultColors; 18static ResourceDictionary highContrastColors; 19static ResourceDictionary fontAndColorResources; 107static ResourceDictionary DefaultColors 118defaultColors = (ResourceDictionary)Application.LoadComponent(resourceLocator); 125static ResourceDictionary HighContrastColors 136highContrastColors = (ResourceDictionary)Application.LoadComponent(resourceLocator); 143internal static ResourceDictionary FontAndColorResources 630ResourceDictionary resources = new ResourceDictionary();
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (6)
106private static ResourceDictionary iconResourceDictionary; 108internal static ResourceDictionary IconResourceDictionary 129ResourceDictionary windowsAppIcons = (ResourceDictionary)Application.LoadComponent(resourceUri); 167ResourceDictionary defaultIcons = (ResourceDictionary)Application.LoadComponent(resourceUri);