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