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
- ToolStripPanelRow.cs
- IntSecurity.cs
- CompositeCollection.cs
- HttpPostedFile.cs
- XmlDocumentSerializer.cs
- GenericParameterDataContract.cs
- Source.cs
- UIInitializationException.cs
- DataRowCollection.cs
- HttpRawResponse.cs
- QueryCacheEntry.cs
- ProvidePropertyAttribute.cs
- ListParaClient.cs
- ConstructorNeedsTagAttribute.cs
- LoginName.cs
- ILGenerator.cs
- CommunicationObjectAbortedException.cs
- HideDisabledControlAdapter.cs
- PreloadedPackages.cs
- DataGridTableCollection.cs
- SrgsOneOf.cs
- _UncName.cs
- InternalMappingException.cs
- FixUp.cs
- KeySplineConverter.cs
- _SpnDictionary.cs
- TextEffectCollection.cs
- CommandBindingCollection.cs
- ConfigXmlText.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- MinimizableAttributeTypeConverter.cs
- IBuiltInEvidence.cs
- MatrixUtil.cs
- WebPartTransformer.cs
- HWStack.cs
- AtlasWeb.Designer.cs
- SchemaSetCompiler.cs
- Range.cs
- ImportOptions.cs
- TextContainer.cs
- LayoutEditorPart.cs
- SQLConvert.cs
- CoTaskMemSafeHandle.cs
- HtmlObjectListAdapter.cs
- SamlConditions.cs
- SqlVisitor.cs
- MultiPartWriter.cs
- TextElementAutomationPeer.cs
- ComAdminWrapper.cs
- ErrorHandler.cs
- ControlIdConverter.cs
- StreamAsIStream.cs
- IndicShape.cs
- webbrowsersite.cs
- CatalogPart.cs
- DrawingImage.cs
- HttpGetClientProtocol.cs
- ExpressionEditorAttribute.cs
- ExpandSegment.cs
- CodeComment.cs
- TemplateControl.cs
- Splitter.cs
- HotSpotCollection.cs
- FileFormatException.cs
- ProcessModelSection.cs
- UnionCodeGroup.cs
- LambdaCompiler.Logical.cs
- TrustSection.cs
- FormatVersion.cs
- _ScatterGatherBuffers.cs
- WmlValidationSummaryAdapter.cs
- CompilerGeneratedAttribute.cs
- SchemeSettingElement.cs
- SafeNativeMethods.cs
- ImageKeyConverter.cs
- RsaSecurityToken.cs
- Classification.cs
- UnsafeNativeMethodsPenimc.cs
- ConfigurationStrings.cs
- ConfigurationException.cs
- UIAgentMonitor.cs
- RectangleHotSpot.cs
- PerformanceCounterPermissionEntry.cs
- TraceSection.cs
- XmlNamespaceMappingCollection.cs
- HwndSourceParameters.cs
- AngleUtil.cs
- Function.cs
- _NestedMultipleAsyncResult.cs
- Scheduling.cs
- EndpointDispatcher.cs
- ReturnType.cs
- TreeBuilderXamlTranslator.cs
- PersonalizationState.cs
- DescendantQuery.cs
- LoginView.cs
- BitmapEffectOutputConnector.cs
- ComplexLine.cs
- BamlMapTable.cs
- versioninfo.cs