Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- FieldAccessException.cs
- SQLBytesStorage.cs
- BooleanSwitch.cs
- BaseValidatorDesigner.cs
- AssociationTypeEmitter.cs
- exports.cs
- RadioButtonAutomationPeer.cs
- WebPartVerb.cs
- ComplexTypeEmitter.cs
- ScrollBar.cs
- TextParagraph.cs
- CodeGen.cs
- HttpCacheVary.cs
- BaseParagraph.cs
- LinkAreaEditor.cs
- EventToken.cs
- ItemMap.cs
- WCFServiceClientProxyGenerator.cs
- DragDeltaEventArgs.cs
- Int32Rect.cs
- LineServicesRun.cs
- ColorAnimationBase.cs
- WebMessageEncoderFactory.cs
- AttachmentCollection.cs
- JavascriptCallbackBehaviorAttribute.cs
- ConfigurationManager.cs
- ObfuscateAssemblyAttribute.cs
- XmlDocumentFieldSchema.cs
- PropertyDescriptorCollection.cs
- BatchServiceHost.cs
- SelectionUIHandler.cs
- ToolStripPanelRow.cs
- SafeHandles.cs
- GenericsInstances.cs
- RootBrowserWindowAutomationPeer.cs
- x509utils.cs
- InboundActivityHelper.cs
- PermissionSetTriple.cs
- WebPartDescriptionCollection.cs
- ListManagerBindingsCollection.cs
- _NegotiateClient.cs
- ToolTip.cs
- TableCell.cs
- ExtensionQuery.cs
- ExtenderHelpers.cs
- xmlglyphRunInfo.cs
- MetadataPropertyvalue.cs
- StringConverter.cs
- ValidateNames.cs
- FontFamilyIdentifier.cs
- ElapsedEventArgs.cs
- XmlAttributeOverrides.cs
- DiagnosticsConfigurationHandler.cs
- DataServiceCollectionOfT.cs
- PolyLineSegment.cs
- Image.cs
- objectresult_tresulttype.cs
- SqlFactory.cs
- Vector3DAnimation.cs
- SchemaImporterExtensionElement.cs
- CustomCredentialPolicy.cs
- CodeObject.cs
- DbgUtil.cs
- HtmlHistory.cs
- IdentifierCollection.cs
- UTF8Encoding.cs
- BuildManager.cs
- ComponentResourceManager.cs
- PersonalizationProviderCollection.cs
- MsmqEncryptionAlgorithm.cs
- DataGridViewControlCollection.cs
- ContextBase.cs
- DLinqDataModelProvider.cs
- Color.cs
- Utils.cs
- DocumentReference.cs
- DockProviderWrapper.cs
- DataGridViewCheckBoxCell.cs
- AsymmetricKeyExchangeFormatter.cs
- PeerTransportListenAddressValidatorAttribute.cs
- OperandQuery.cs
- AdornerDecorator.cs
- ProcessRequestArgs.cs
- ResourceReferenceExpressionConverter.cs
- OdbcUtils.cs
- SymbolMethod.cs
- COM2PropertyDescriptor.cs
- MappingException.cs
- Underline.cs
- IgnoreDeviceFilterElementCollection.cs
- PropertyEmitter.cs
- FormatterConverter.cs
- WorkflowElementDialog.cs
- MLangCodePageEncoding.cs
- ConfigurationValues.cs
- GeneralEndpointIdentity.cs
- ThicknessAnimationBase.cs
- PageBreakRecord.cs
- XhtmlBasicPanelAdapter.cs
- XhtmlBasicLiteralTextAdapter.cs