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
- SchemaNotation.cs
- SchemaNotation.cs
- EditorAttribute.cs
- Rect.cs
- CryptoApi.cs
- TrackingConditionCollection.cs
- EventMappingSettingsCollection.cs
- VBCodeProvider.cs
- SchemaType.cs
- EffectiveValueEntry.cs
- DataGridViewCellLinkedList.cs
- CommonObjectSecurity.cs
- TextDecorationLocationValidation.cs
- Queue.cs
- IOThreadTimer.cs
- XmlILStorageConverter.cs
- SamlDoNotCacheCondition.cs
- HtmlInputFile.cs
- EncodingDataItem.cs
- RuntimeArgumentHandle.cs
- ErrorFormatter.cs
- JsonMessageEncoderFactory.cs
- SmiConnection.cs
- LinqMaximalSubtreeNominator.cs
- EventlogProvider.cs
- BitmapInitialize.cs
- StackBuilderSink.cs
- SafeRegistryKey.cs
- Underline.cs
- ConnectionConsumerAttribute.cs
- LambdaCompiler.Logical.cs
- MediaCommands.cs
- Attributes.cs
- ObjectListItem.cs
- CheckBox.cs
- SqlClientPermission.cs
- StorageTypeMapping.cs
- AppSecurityManager.cs
- DataGridItem.cs
- XPathAxisIterator.cs
- StoreItemCollection.cs
- ProxyManager.cs
- PropertyFilter.cs
- WebScriptEndpoint.cs
- _SecureChannel.cs
- FormsAuthenticationCredentials.cs
- OdbcConnectionOpen.cs
- ListViewDeletedEventArgs.cs
- OdbcCommand.cs
- Typography.cs
- PartialArray.cs
- objectresult_tresulttype.cs
- OneOfElement.cs
- TextTreeRootTextBlock.cs
- WindowsFormsHelpers.cs
- EmptyEnumerator.cs
- MsmqHostedTransportConfiguration.cs
- TemplatePropertyEntry.cs
- PathFigureCollectionConverter.cs
- MetafileHeaderEmf.cs
- RowCache.cs
- RSACryptoServiceProvider.cs
- ChannelTraceRecord.cs
- HTMLTagNameToTypeMapper.cs
- RestClientProxyHandler.cs
- IdentityReference.cs
- RunWorkerCompletedEventArgs.cs
- ExpressionVisitor.cs
- PersonalizablePropertyEntry.cs
- XmlSchemaInferenceException.cs
- ProcessHostMapPath.cs
- PropertyGridView.cs
- BitmapImage.cs
- OdbcConnectionString.cs
- ArgIterator.cs
- XmlWrappingReader.cs
- HyperLinkDataBindingHandler.cs
- ThicknessAnimation.cs
- RowUpdatedEventArgs.cs
- ImageInfo.cs
- SQLByteStorage.cs
- IPEndPoint.cs
- SortDescription.cs
- Preprocessor.cs
- SafeProcessHandle.cs
- QilList.cs
- DataKeyCollection.cs
- SurrogateEncoder.cs
- BooleanFunctions.cs
- HierarchicalDataSourceControl.cs
- FixedDocumentPaginator.cs
- BooleanAnimationUsingKeyFrames.cs
- EmptyEnumerator.cs
- ImageInfo.cs
- AstTree.cs
- PasswordDeriveBytes.cs
- GridViewDeleteEventArgs.cs
- ImageFormatConverter.cs
- ObjectTag.cs
- IndexingContentUnit.cs