Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / ThemeInfoAttribute.cs / 1 / 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. //---------------------------------------------------------------------------- // // 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
- DbDataSourceEnumerator.cs
- ScriptingRoleServiceSection.cs
- TemplatePartAttribute.cs
- UserInitiatedRoutedEventPermission.cs
- DocumentViewerBase.cs
- MessageCredentialType.cs
- SqlDataSourceSelectingEventArgs.cs
- SignerInfo.cs
- ManifestSignatureInformation.cs
- PropertyOverridesTypeEditor.cs
- SmiSettersStream.cs
- TextViewBase.cs
- InputMethodStateChangeEventArgs.cs
- ArraySubsetEnumerator.cs
- BaseTemplateBuildProvider.cs
- DnsPermission.cs
- ThicknessAnimationUsingKeyFrames.cs
- WindowsEditBox.cs
- X509Utils.cs
- SourceChangedEventArgs.cs
- EncoderParameter.cs
- HttpResponseMessageProperty.cs
- DataServiceQuery.cs
- StyleTypedPropertyAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- CodeAttributeDeclaration.cs
- Synchronization.cs
- SmiContext.cs
- TreeView.cs
- IntegrationExceptionEventArgs.cs
- StylusEditingBehavior.cs
- RemoteWebConfigurationHostStream.cs
- UIElement3D.cs
- ImageAttributes.cs
- FragmentNavigationEventArgs.cs
- ErrorWrapper.cs
- DocumentGrid.cs
- DeviceContexts.cs
- XhtmlBasicLiteralTextAdapter.cs
- SelectionListComponentEditor.cs
- _HeaderInfo.cs
- CheckBoxRenderer.cs
- AnimatedTypeHelpers.cs
- CodeDirectionExpression.cs
- GridViewUpdatedEventArgs.cs
- HandlerFactoryCache.cs
- RbTree.cs
- SoapTypeAttribute.cs
- TextBox.cs
- WebPartCloseVerb.cs
- RsaSecurityTokenAuthenticator.cs
- SchemaNotation.cs
- WsatServiceAddress.cs
- VarRemapper.cs
- InvalidOleVariantTypeException.cs
- SID.cs
- ModelUIElement3D.cs
- JsonObjectDataContract.cs
- StrongTypingException.cs
- _WinHttpWebProxyDataBuilder.cs
- ControlAdapter.cs
- ScriptingWebServicesSectionGroup.cs
- ClientTargetCollection.cs
- ConfigDefinitionUpdates.cs
- PageContentCollection.cs
- OciEnlistContext.cs
- Claim.cs
- ExtensionDataReader.cs
- ScriptManager.cs
- HostProtectionException.cs
- IdentityNotMappedException.cs
- ScaleTransform3D.cs
- Int16AnimationBase.cs
- DataGridCellEditEndingEventArgs.cs
- LocatorBase.cs
- JsonServiceDocumentSerializer.cs
- VectorAnimationUsingKeyFrames.cs
- DBParameter.cs
- SafeFileMappingHandle.cs
- DodSequenceMerge.cs
- GeneralTransform.cs
- Process.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- _ContextAwareResult.cs
- ScrollChrome.cs
- SubpageParagraph.cs
- BaseTreeIterator.cs
- DataGridViewDataErrorEventArgs.cs
- TraceListeners.cs
- TreeViewImageKeyConverter.cs
- ExpanderAutomationPeer.cs
- PropertyPathWorker.cs
- XmlSchemaAnnotation.cs
- TagNameToTypeMapper.cs
- ContractSearchPattern.cs
- XmlDocumentType.cs
- ControlIdConverter.cs
- Win32MouseDevice.cs
- ScrollChrome.cs
- DesignerMetadata.cs