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
- StandardToolWindows.cs
- StateBag.cs
- TextInfo.cs
- ThemeInfoAttribute.cs
- Style.cs
- ArgumentValidation.cs
- MsmqReceiveHelper.cs
- PartialCachingAttribute.cs
- CompositeFontInfo.cs
- PixelFormats.cs
- VectorAnimationBase.cs
- Model3D.cs
- MetadataSource.cs
- IndentTextWriter.cs
- SynchronizingStream.cs
- SerTrace.cs
- TextTrailingWordEllipsis.cs
- VirtualPath.cs
- DocumentApplicationJournalEntry.cs
- StructuralType.cs
- CharEntityEncoderFallback.cs
- HttpException.cs
- SoapInteropTypes.cs
- Int32AnimationBase.cs
- MailHeaderInfo.cs
- FlatButtonAppearance.cs
- SpellCheck.cs
- SqlDataSourceQueryEditorForm.cs
- DocumentSchemaValidator.cs
- TcpProcessProtocolHandler.cs
- mactripleDES.cs
- OperationGenerator.cs
- ImageUrlEditor.cs
- ArrayWithOffset.cs
- WindowCollection.cs
- ControlCollection.cs
- OracleCommand.cs
- ConfigXmlWhitespace.cs
- RequestBringIntoViewEventArgs.cs
- HtmlInputRadioButton.cs
- XmlAttributeOverrides.cs
- HtmlImage.cs
- MembershipUser.cs
- GrammarBuilderWildcard.cs
- FilterEventArgs.cs
- WinFormsComponentEditor.cs
- StringBuilder.cs
- SqlBulkCopy.cs
- ReceiveContextCollection.cs
- WizardSideBarListControlItemEventArgs.cs
- IPipelineRuntime.cs
- StylusButtonCollection.cs
- ClockGroup.cs
- ResizingMessageFilter.cs
- OdbcException.cs
- DynamicResourceExtensionConverter.cs
- WindowsListViewItemCheckBox.cs
- X509Certificate.cs
- SuppressMessageAttribute.cs
- InstanceLockedException.cs
- ShapeTypeface.cs
- DataObject.cs
- SqlCacheDependencyDatabaseCollection.cs
- XmlValueConverter.cs
- ViewEvent.cs
- RuleProcessor.cs
- ExecutionContext.cs
- ConfigXmlCDataSection.cs
- BinaryObjectWriter.cs
- ProviderConnectionPoint.cs
- ClockGroup.cs
- SmiEventSink.cs
- QueryOutputWriter.cs
- TextEditorDragDrop.cs
- TextSelectionHighlightLayer.cs
- DbConvert.cs
- ServiceOperationParameter.cs
- DBNull.cs
- ScrollChrome.cs
- MULTI_QI.cs
- ExtendedPropertyDescriptor.cs
- XmlArrayAttribute.cs
- EndpointIdentityConverter.cs
- ScrollProperties.cs
- DataGridViewMethods.cs
- NamespaceInfo.cs
- x509utils.cs
- DocumentsTrace.cs
- DesignerLinkAdapter.cs
- View.cs
- AssemblySettingAttributes.cs
- EditorPartChrome.cs
- IteratorDescriptor.cs
- WebPartTransformerCollection.cs
- MulticastDelegate.cs
- DuplicateWaitObjectException.cs
- ConfigXmlWhitespace.cs
- QueryCorrelationInitializer.cs
- SystemUnicastIPAddressInformation.cs
- Bits.cs