Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ThemeInfoAttribute.cs / 1305600 / ThemeInfoAttribute.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Reflection; namespace System.Windows { ////// Specifies where theme dictionaries are stored for types in an assembly. /// [AttributeUsage(AttributeTargets.Assembly)] public sealed class ThemeInfoAttribute : Attribute { ////// Creates an attribute that defines theme dictionary locations for types in an assembly. /// /// The location of theme specific resources. /// The location of generic, not theme specific, resources. public ThemeInfoAttribute(ResourceDictionaryLocation themeDictionaryLocation, ResourceDictionaryLocation genericDictionaryLocation) { _themeDictionaryLocation = themeDictionaryLocation; _genericDictionaryLocation = genericDictionaryLocation; } ////// The location of theme specific resources. /// public ResourceDictionaryLocation ThemeDictionaryLocation { get { return _themeDictionaryLocation; } } ////// The location of generic, not theme specific, resources. /// public ResourceDictionaryLocation GenericDictionaryLocation { get { return _genericDictionaryLocation; } } internal static ThemeInfoAttribute FromAssembly(Assembly assembly) { return Attribute.GetCustomAttribute(assembly, typeof(ThemeInfoAttribute)) as ThemeInfoAttribute; } private ResourceDictionaryLocation _themeDictionaryLocation; private ResourceDictionaryLocation _genericDictionaryLocation; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AlternateView.cs
- CatalogZoneBase.cs
- MarkerProperties.cs
- PostBackOptions.cs
- XmlStreamedByteStreamReader.cs
- TableSectionStyle.cs
- log.cs
- LinearGradientBrush.cs
- IsolatedStorageFile.cs
- WindowsFormsSectionHandler.cs
- ExpressionBuilder.cs
- VarInfo.cs
- CompositeDuplexBindingElementImporter.cs
- SqlInternalConnectionTds.cs
- NullableDecimalAverageAggregationOperator.cs
- XmlSchemaChoice.cs
- HttpDictionary.cs
- HyperLinkField.cs
- MobileContainerDesigner.cs
- BrowserCapabilitiesFactoryBase.cs
- DataServiceHost.cs
- ExplicitDiscriminatorMap.cs
- MetadataWorkspace.cs
- IPEndPointCollection.cs
- WebBrowserHelper.cs
- DataStreams.cs
- SystemInfo.cs
- Message.cs
- BroadcastEventHelper.cs
- SpellerHighlightLayer.cs
- linebase.cs
- ConfigurationSectionGroup.cs
- CuspData.cs
- Query.cs
- StringHandle.cs
- EncryptedPackage.cs
- AnimatedTypeHelpers.cs
- KnownAssembliesSet.cs
- MenuItem.cs
- BasicBrowserDialog.cs
- ParameterCollection.cs
- ImageCreator.cs
- HtmlLink.cs
- OutputCacheSection.cs
- MarkupCompilePass1.cs
- ModelVisual3D.cs
- BinaryCommonClasses.cs
- DataObject.cs
- httpserverutility.cs
- RichTextBoxConstants.cs
- ForeignConstraint.cs
- AsymmetricKeyExchangeFormatter.cs
- SafeProcessHandle.cs
- HostingEnvironmentSection.cs
- DependencyPropertyChangedEventArgs.cs
- TrustManagerPromptUI.cs
- VirtualizedItemProviderWrapper.cs
- EntityViewGenerationAttribute.cs
- CompilerTypeWithParams.cs
- TimersDescriptionAttribute.cs
- SmiGettersStream.cs
- DockAndAnchorLayout.cs
- EntityDesignerBuildProvider.cs
- JsonReader.cs
- SHA512.cs
- WebPartManagerInternals.cs
- ProcessModelInfo.cs
- ItemType.cs
- Size3DValueSerializer.cs
- ListViewAutomationPeer.cs
- InternalConfigConfigurationFactory.cs
- SafeWaitHandle.cs
- GuidelineCollection.cs
- SerTrace.cs
- MailDefinition.cs
- ByteAnimationBase.cs
- ProfessionalColors.cs
- ManagementOperationWatcher.cs
- PolyBezierSegment.cs
- MarkupCompiler.cs
- TraceContext.cs
- HotSpot.cs
- X509CertificateStore.cs
- SafeReversePInvokeHandle.cs
- DataViewManagerListItemTypeDescriptor.cs
- FontWeightConverter.cs
- RightsDocument.cs
- SendMailErrorEventArgs.cs
- ProcessHostConfigUtils.cs
- StringArrayEditor.cs
- Slider.cs
- FamilyMapCollection.cs
- UnknownBitmapDecoder.cs
- TypeResolver.cs
- AuthenticationService.cs
- ContourSegment.cs
- OutputCacheProfile.cs
- UInt64Storage.cs
- ReadWriteSpinLock.cs
- TableAdapterManagerMethodGenerator.cs