1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.Activities.Presentation.View
8 using System.Collections.Generic;
16 private static ResourceDictionary resources;
17 internal static ResourceDictionary GetResources()
19 if (resources == null)
21 Uri resourceLocator = new Uri(
23 typeof(EditorResources).Assembly.GetName().Name,
24 @";component/System/Activities/Presentation/View/EditorResources.xaml"),
25 UriKind.RelativeOrAbsolute);
26 resources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
28 Fx.Assert(resources != null, "Could not load argument value editor resources.");
31 static ResourceDictionary icons;
32 internal static ResourceDictionary GetIcons()
36 icons = WorkflowDesignerIcons.IconResourceDictionary;
38 Fx.Assert(icons != null, "Could not load icon resources.");