Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / View / EditorResources.cs / 1305376 / EditorResources.cs
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.Activities.Presentation.View
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Runtime;
class EditorResources
{
private static ResourceDictionary resources;
internal static ResourceDictionary GetResources()
{
if (resources == null)
{
Uri resourceLocator = new Uri(
string.Concat(
typeof(EditorResources).Assembly.GetName().Name,
@";component/System/Activities/Presentation/View/EditorResources.xaml"),
UriKind.RelativeOrAbsolute);
resources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
}
Fx.Assert(resources != null, "Could not load argument value editor resources.");
return resources;
}
static ResourceDictionary icons;
internal static ResourceDictionary GetIcons()
{
if (null == icons)
{
Uri resourceLocator = new Uri(
string.Concat(
typeof(EditorResources).Assembly.GetName().Name,
@";component/Themes/Icons.xaml"),
UriKind.RelativeOrAbsolute);
icons = (ResourceDictionary)Application.LoadComponent(resourceLocator);
}
Fx.Assert(icons!= null, "Could not load icon resources.");
return icons;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.Activities.Presentation.View
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Runtime;
class EditorResources
{
private static ResourceDictionary resources;
internal static ResourceDictionary GetResources()
{
if (resources == null)
{
Uri resourceLocator = new Uri(
string.Concat(
typeof(EditorResources).Assembly.GetName().Name,
@";component/System/Activities/Presentation/View/EditorResources.xaml"),
UriKind.RelativeOrAbsolute);
resources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
}
Fx.Assert(resources != null, "Could not load argument value editor resources.");
return resources;
}
static ResourceDictionary icons;
internal static ResourceDictionary GetIcons()
{
if (null == icons)
{
Uri resourceLocator = new Uri(
string.Concat(
typeof(EditorResources).Assembly.GetName().Name,
@";component/Themes/Icons.xaml"),
UriKind.RelativeOrAbsolute);
icons = (ResourceDictionary)Application.LoadComponent(resourceLocator);
}
Fx.Assert(icons!= null, "Could not load icon resources.");
return icons;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SHA512Managed.cs
- EnumConverter.cs
- WindowClosedEventArgs.cs
- EntitySqlQueryCacheKey.cs
- TypeEnumerableViewSchema.cs
- HttpConfigurationContext.cs
- ReadOnlyHierarchicalDataSource.cs
- CalendarDateRangeChangingEventArgs.cs
- XmlAutoDetectWriter.cs
- LambdaCompiler.Lambda.cs
- Drawing.cs
- AnimationTimeline.cs
- DataSourceControl.cs
- ListViewGroup.cs
- WeakReadOnlyCollection.cs
- ItemDragEvent.cs
- HtmlTextArea.cs
- QilInvoke.cs
- Normalization.cs
- ContainerFilterService.cs
- FastPropertyAccessor.cs
- XmlSchemaComplexContentRestriction.cs
- EpmCustomContentDeSerializer.cs
- VisualStyleTypesAndProperties.cs
- DesignerTextWriter.cs
- FixedStringLookup.cs
- HtmlInputImage.cs
- BitVector32.cs
- TreeView.cs
- Int32CollectionValueSerializer.cs
- StorageBasedPackageProperties.cs
- SqlGenerator.cs
- DataControlFieldCell.cs
- KeyPressEvent.cs
- BypassElementCollection.cs
- EmbeddedMailObjectsCollection.cs
- ConstraintEnumerator.cs
- localization.cs
- UseAttributeSetsAction.cs
- ISAPIRuntime.cs
- Renderer.cs
- DataGridViewHitTestInfo.cs
- login.cs
- XsdDataContractExporter.cs
- TypeDescriptor.cs
- SymmetricKey.cs
- ChildDocumentBlock.cs
- HttpWebResponse.cs
- UnsafeNativeMethods.cs
- FontNamesConverter.cs
- PagePropertiesChangingEventArgs.cs
- Win32.cs
- MemberHolder.cs
- ConsoleKeyInfo.cs
- WindowsPrincipal.cs
- SiteMap.cs
- KeyEvent.cs
- XmlSerializerSection.cs
- Int32RectValueSerializer.cs
- NativeMethods.cs
- HeaderCollection.cs
- ComponentCommands.cs
- FacetValues.cs
- RuleSettings.cs
- ProtocolsConfigurationEntry.cs
- FaultContractInfo.cs
- DataListItemCollection.cs
- Dump.cs
- ProviderSettingsCollection.cs
- ElementHostAutomationPeer.cs
- RepeatBehaviorConverter.cs
- StorageBasedPackageProperties.cs
- Visual.cs
- UnsafeNativeMethods.cs
- StorageBasedPackageProperties.cs
- UpdatableWrapper.cs
- ObjectListCommandEventArgs.cs
- SignatureHelper.cs
- RecordManager.cs
- EntityDataSourceDesignerHelper.cs
- MasterPageParser.cs
- XmlEncodedRawTextWriter.cs
- DataService.cs
- StateBag.cs
- GPPOINT.cs
- EntityWrapperFactory.cs
- SHA1CryptoServiceProvider.cs
- EntityViewGenerationAttribute.cs
- NonParentingControl.cs
- Accessible.cs
- UrlAuthorizationModule.cs
- XmlFormatReaderGenerator.cs
- ContextStack.cs
- _CookieModule.cs
- PackageRelationship.cs
- WebServiceClientProxyGenerator.cs
- BitArray.cs
- BitmapEffectDrawing.cs
- CheckBoxAutomationPeer.cs
- AppDomainShutdownMonitor.cs