Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSimpleContent.cs
- FunctionDefinition.cs
- Win32KeyboardDevice.cs
- GestureRecognizer.cs
- SelectionRange.cs
- ProfileService.cs
- DataBoundControlHelper.cs
- CallbackValidatorAttribute.cs
- ReadOnlyDictionary.cs
- URLAttribute.cs
- TreeIterator.cs
- PartialList.cs
- DataBindingCollection.cs
- LineBreak.cs
- SerializationFieldInfo.cs
- DataGridViewColumn.cs
- counter.cs
- ConnectionInterfaceCollection.cs
- DurableErrorHandler.cs
- SqlFunctionAttribute.cs
- AlternateViewCollection.cs
- HtmlPanelAdapter.cs
- UnsafeNativeMethodsCLR.cs
- HttpResponseHeader.cs
- LineServices.cs
- ProcessHostFactoryHelper.cs
- CommandField.cs
- QuadraticEase.cs
- OleAutBinder.cs
- InputReport.cs
- ParameterCollection.cs
- CodeBinaryOperatorExpression.cs
- MenuItemBinding.cs
- CodeCatchClauseCollection.cs
- precedingquery.cs
- SchemaDeclBase.cs
- CodeDelegateInvokeExpression.cs
- SpecialFolderEnumConverter.cs
- DataMemberAttribute.cs
- LinqExpressionNormalizer.cs
- FormDocumentDesigner.cs
- TitleStyle.cs
- EllipseGeometry.cs
- CodeExpressionStatement.cs
- GPPOINTF.cs
- WebServiceHandler.cs
- SerialReceived.cs
- SoapMessage.cs
- DataGridTableStyleMappingNameEditor.cs
- NavigationWindow.cs
- DirectionalLight.cs
- Filter.cs
- LinkedDataMemberFieldEditor.cs
- SafeCancelMibChangeNotify.cs
- Vector3DConverter.cs
- XPathNodeIterator.cs
- JavaScriptSerializer.cs
- XsltSettings.cs
- InheritablePropertyChangeInfo.cs
- SqlRewriteScalarSubqueries.cs
- ExcCanonicalXml.cs
- SqlFunctions.cs
- TableRowGroup.cs
- Hyperlink.cs
- ItemCheckEvent.cs
- ValidationHelper.cs
- _ProxyChain.cs
- DynamicMetaObject.cs
- InheritanceRules.cs
- Logging.cs
- CodeGenerator.cs
- XmlDictionaryString.cs
- SelectionGlyph.cs
- URLIdentityPermission.cs
- wmiprovider.cs
- ResourceDescriptionAttribute.cs
- ProcessHostServerConfig.cs
- ToolStripSplitButton.cs
- VirtualDirectoryMapping.cs
- StateMachineHelpers.cs
- TextDecorations.cs
- FlowLayoutPanel.cs
- SemanticResultValue.cs
- ProfileInfo.cs
- ByteAnimation.cs
- InvalidProgramException.cs
- TypeDescriptorContext.cs
- XmlFormatWriterGenerator.cs
- CodeAccessSecurityEngine.cs
- BordersPage.cs
- WebPartCatalogAddVerb.cs
- UnauthorizedWebPart.cs
- RuleDefinitions.cs
- Attributes.cs
- HandlerBase.cs
- ScriptMethodAttribute.cs
- ReturnType.cs
- DataGridViewBindingCompleteEventArgs.cs
- FirstMatchCodeGroup.cs
- ApplyHostConfigurationBehavior.cs