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
- BitmapEffectState.cs
- _RequestLifetimeSetter.cs
- ScrollItemPatternIdentifiers.cs
- FixedSOMTextRun.cs
- CryptoConfig.cs
- LogicalExpr.cs
- PointConverter.cs
- ServiceDescriptionReflector.cs
- RegexReplacement.cs
- XmlDictionaryReader.cs
- _Events.cs
- ObjectParameterCollection.cs
- SqlDataSourceTableQuery.cs
- NavigationWindow.cs
- OdbcEnvironment.cs
- XamlSerializer.cs
- EntityDesignerDataSourceView.cs
- FileChangeNotifier.cs
- ViewBase.cs
- InputEventArgs.cs
- SqlBulkCopy.cs
- CodePageUtils.cs
- MinimizableAttributeTypeConverter.cs
- CheckBox.cs
- MSAAEventDispatcher.cs
- FullTextBreakpoint.cs
- PartitionedStream.cs
- StaticContext.cs
- ComponentResourceKey.cs
- SecurityTokenTypes.cs
- XPathDocumentIterator.cs
- ExpandCollapsePattern.cs
- BaseConfigurationRecord.cs
- TypeConstant.cs
- ActivityValidationServices.cs
- BrowsableAttribute.cs
- AssemblyBuilder.cs
- PipeConnection.cs
- AssemblyResourceLoader.cs
- BookmarkList.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlNode.cs
- ResXResourceSet.cs
- StateDesigner.CommentLayoutGlyph.cs
- Win32PrintDialog.cs
- UrlMappingCollection.cs
- StringUtil.cs
- CompModSwitches.cs
- TemplateControl.cs
- XPathNodeIterator.cs
- SourceFileInfo.cs
- ExpandSegmentCollection.cs
- RTTypeWrapper.cs
- ModifierKeysValueSerializer.cs
- ToolStripGrip.cs
- PrivacyNoticeBindingElementImporter.cs
- BindToObject.cs
- IdentityHolder.cs
- ServiceDescriptionReflector.cs
- ProjectionAnalyzer.cs
- PointLightBase.cs
- TypeInitializationException.cs
- PenLineCapValidation.cs
- ImageProxy.cs
- MetadataPropertyvalue.cs
- CategoryNameCollection.cs
- CodeArrayCreateExpression.cs
- ObjectStateManager.cs
- DependencyObjectType.cs
- SymbolTable.cs
- AttributeAction.cs
- ParseElementCollection.cs
- SqlRecordBuffer.cs
- StrokeDescriptor.cs
- ApplicationFileParser.cs
- DataColumnCollection.cs
- ClientSponsor.cs
- ClientApiGenerator.cs
- NestedContainer.cs
- ObjectConverter.cs
- Sequence.cs
- SubpageParagraph.cs
- MetabaseReader.cs
- TemplateDefinition.cs
- MetafileHeader.cs
- SpellerError.cs
- InvokeMethodActivity.cs
- BooleanFunctions.cs
- ResourceDictionary.cs
- WindowInteropHelper.cs
- SimpleTypeResolver.cs
- DataControlField.cs
- GlyphElement.cs
- EntityDataSource.cs
- DecimalConstantAttribute.cs
- DocumentGridPage.cs
- BitConverter.cs
- PreProcessor.cs
- XmlSchemaNotation.cs
- BasicExpressionVisitor.cs