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
- MaskedTextProvider.cs
- isolationinterop.cs
- WebPartConnection.cs
- SqlDependency.cs
- WorkflowMarkupElementEventArgs.cs
- StylusLogic.cs
- DES.cs
- ConnectionStringSettingsCollection.cs
- SpecularMaterial.cs
- ColorContextHelper.cs
- DataConnectionHelper.cs
- _SSPISessionCache.cs
- CalendarDataBindingHandler.cs
- InvocationExpression.cs
- Encoding.cs
- HttpContextServiceHost.cs
- HyperLinkColumn.cs
- BoundsDrawingContextWalker.cs
- InheritablePropertyChangeInfo.cs
- HashSetEqualityComparer.cs
- HighContrastHelper.cs
- TextChangedEventArgs.cs
- WebDisplayNameAttribute.cs
- StatusBarPanelClickEvent.cs
- TemplateComponentConnector.cs
- CodeStatementCollection.cs
- BaseTransportHeaders.cs
- BodyGlyph.cs
- ContentPosition.cs
- ItemType.cs
- ClientConfigurationHost.cs
- AutomationIdentifier.cs
- PrintingPermissionAttribute.cs
- MatchNoneMessageFilter.cs
- VBIdentifierDesigner.xaml.cs
- InkPresenter.cs
- CacheRequest.cs
- NameTable.cs
- HtmlString.cs
- HtmlInputRadioButton.cs
- Effect.cs
- FrameworkContentElement.cs
- OleDbReferenceCollection.cs
- OperationContractGenerationContext.cs
- ProfessionalColorTable.cs
- XmlEncodedRawTextWriter.cs
- EmbeddedMailObjectsCollection.cs
- TrustManagerPromptUI.cs
- CompilationRelaxations.cs
- AssemblyNameUtility.cs
- SegmentInfo.cs
- PreviewPageInfo.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- MarshalDirectiveException.cs
- Wizard.cs
- TableDetailsRow.cs
- TextBoxView.cs
- XmlNodeChangedEventArgs.cs
- SafeHandles.cs
- AuthStoreRoleProvider.cs
- SortableBindingList.cs
- DefaultObjectMappingItemCollection.cs
- QilPatternVisitor.cs
- DataControlFieldHeaderCell.cs
- OptionalColumn.cs
- XamlUtilities.cs
- ViewEvent.cs
- SafePointer.cs
- InfoCardRSACryptoProvider.cs
- RefExpr.cs
- Int64AnimationBase.cs
- ComMethodElementCollection.cs
- MessageHeaderException.cs
- CollectionBase.cs
- BitmapCache.cs
- BufferedStream.cs
- DesignBindingValueUIHandler.cs
- DocumentXmlWriter.cs
- ZipIOLocalFileBlock.cs
- CodeSnippetStatement.cs
- Mutex.cs
- Clause.cs
- RelationshipNavigation.cs
- TableItemStyle.cs
- HTTPNotFoundHandler.cs
- AutomationPattern.cs
- ScriptDescriptor.cs
- LeaseManager.cs
- SiteIdentityPermission.cs
- AutoGeneratedFieldProperties.cs
- GetPolicyDetailsRequest.cs
- TextServicesDisplayAttribute.cs
- ZipIOCentralDirectoryBlock.cs
- DecoderFallbackWithFailureFlag.cs
- SByte.cs
- SchemaManager.cs
- PowerModeChangedEventArgs.cs
- URL.cs
- RtfToXamlReader.cs
- ListDictionaryInternal.cs