Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- FileDetails.cs
- FieldNameLookup.cs
- FunctionUpdateCommand.cs
- RelationshipConstraintValidator.cs
- RelatedView.cs
- SystemNetHelpers.cs
- SymDocumentType.cs
- DocumentViewerBaseAutomationPeer.cs
- mongolianshape.cs
- ZipIOFileItemStream.cs
- GlyphRunDrawing.cs
- DataGridTextBox.cs
- Expressions.cs
- DataConnectionHelper.cs
- ExpressionPrefixAttribute.cs
- DropSource.cs
- SmtpSection.cs
- ADMembershipUser.cs
- FigureParaClient.cs
- XPathArrayIterator.cs
- datacache.cs
- connectionpool.cs
- ParameterToken.cs
- StrokeIntersection.cs
- BitmapFrame.cs
- CopyNamespacesAction.cs
- ServiceObjectContainer.cs
- Sentence.cs
- DivideByZeroException.cs
- SqlGatherProducedAliases.cs
- VideoDrawing.cs
- DiscardableAttribute.cs
- XmlDocument.cs
- HttpStreamMessageEncoderFactory.cs
- OverlappedAsyncResult.cs
- XamlReaderHelper.cs
- WindowsListViewScroll.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- TreeNodeEventArgs.cs
- LinkConverter.cs
- SessionState.cs
- ReadOnlyHierarchicalDataSource.cs
- VisualStyleInformation.cs
- CollectionViewProxy.cs
- DecimalMinMaxAggregationOperator.cs
- IRCollection.cs
- CodeDomConfigurationHandler.cs
- PeerToPeerException.cs
- InternalDispatchObject.cs
- SingleAnimationBase.cs
- DuplicateContext.cs
- CodeNamespaceImportCollection.cs
- ReceiveDesigner.xaml.cs
- PopOutPanel.cs
- TextParagraphCache.cs
- UnionCodeGroup.cs
- __Filters.cs
- RequestDescription.cs
- HttpHandlersSection.cs
- ImageConverter.cs
- MenuAdapter.cs
- Function.cs
- DataGridColumnCollection.cs
- IdentitySection.cs
- ApplicationGesture.cs
- SubstitutionDesigner.cs
- XPathNavigator.cs
- DesignerForm.cs
- Color.cs
- FrameworkTextComposition.cs
- ResolveMatchesMessage11.cs
- DiagnosticSection.cs
- DrawingImage.cs
- DateTimeConstantAttribute.cs
- CodeDirectionExpression.cs
- sqlser.cs
- XmlSchemaCompilationSettings.cs
- JpegBitmapDecoder.cs
- OdbcCommandBuilder.cs
- LoginStatusDesigner.cs
- UniformGrid.cs
- Visitors.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlFormatWriterGenerator.cs
- CacheForPrimitiveTypes.cs
- SafeNativeMethods.cs
- DashStyle.cs
- xmlglyphRunInfo.cs
- AttributedMetaModel.cs
- ColorTransform.cs
- BasePattern.cs
- MetadataItemEmitter.cs
- DateRangeEvent.cs
- DbParameterCollectionHelper.cs
- TextServicesLoader.cs
- QilInvokeEarlyBound.cs
- BinaryFormatterWriter.cs
- LayoutEditorPart.cs
- CompareValidator.cs
- _Semaphore.cs