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
- IntSecurity.cs
- mediaeventargs.cs
- Converter.cs
- VirtualizingStackPanel.cs
- QilBinary.cs
- XmlSchemaSequence.cs
- AssociationTypeEmitter.cs
- ThicknessConverter.cs
- DiagnosticsElement.cs
- Utilities.cs
- WpfGeneratedKnownProperties.cs
- CompoundFileIOPermission.cs
- TextFindEngine.cs
- ping.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataGridHelper.cs
- BitmapScalingModeValidation.cs
- _NativeSSPI.cs
- Panel.cs
- PassportAuthenticationModule.cs
- PageBreakRecord.cs
- InstanceKeyCollisionException.cs
- safelink.cs
- WindowsHyperlink.cs
- BrowserInteropHelper.cs
- WpfWebRequestHelper.cs
- PenThread.cs
- OptimalBreakSession.cs
- ExpressionCopier.cs
- ObjectHelper.cs
- SessionStateModule.cs
- OdbcParameterCollection.cs
- SspiNegotiationTokenAuthenticator.cs
- ServiceModelSecurityTokenTypes.cs
- TemplateInstanceAttribute.cs
- AppLevelCompilationSectionCache.cs
- KnownBoxes.cs
- AnnotationHighlightLayer.cs
- ClrPerspective.cs
- EffectiveValueEntry.cs
- AccessDataSourceView.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- XmlElementCollection.cs
- SafeThemeHandle.cs
- RequestStatusBarUpdateEventArgs.cs
- AppDomainManager.cs
- CoTaskMemHandle.cs
- DataGridColumnEventArgs.cs
- Bits.cs
- Stack.cs
- DispatchWrapper.cs
- EdmProperty.cs
- prefixendpointaddressmessagefiltertable.cs
- ExceptionValidationRule.cs
- ThemeDirectoryCompiler.cs
- MatrixTransform3D.cs
- UpdatePanelTrigger.cs
- NavigationProperty.cs
- SettingsPropertyIsReadOnlyException.cs
- AuthenticationModulesSection.cs
- TextEmbeddedObject.cs
- KerberosSecurityTokenParameters.cs
- IndividualDeviceConfig.cs
- RowToParametersTransformer.cs
- DesignerVerbToolStripMenuItem.cs
- ToolStripButton.cs
- XmlAnyElementAttributes.cs
- VectorValueSerializer.cs
- DirectoryRedirect.cs
- ApplicationInterop.cs
- Currency.cs
- ScrollChrome.cs
- SafeFileMappingHandle.cs
- SerializerDescriptor.cs
- NativeMethods.cs
- TemplateContainer.cs
- ClientTarget.cs
- ChtmlTextWriter.cs
- Frame.cs
- XmlSchemaGroupRef.cs
- SchemaTableOptionalColumn.cs
- MaterializeFromAtom.cs
- Vector3DIndependentAnimationStorage.cs
- Mutex.cs
- SQLDateTime.cs
- ProcessProtocolHandler.cs
- RuleRefElement.cs
- ListDataHelper.cs
- LazyTextWriterCreator.cs
- DynamicPropertyHolder.cs
- ArglessEventHandlerProxy.cs
- NativeMethods.cs
- AppDomain.cs
- Control.cs
- GiveFeedbackEvent.cs
- NetSectionGroup.cs
- ElapsedEventArgs.cs
- SqlNamer.cs
- GenericXmlSecurityToken.cs
- XmlNodeList.cs